+ Reply
Results 1 to 8 of 8
  1. #1
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    6
    Thanks
    0
    Thanked 5 Times in 2 Posts

    Default Icon label background with rounded corners, opacity and gradients

    With some CSS trickery I have semi transparent rounded corner labels:



    Work in progress still.

    If anyone is interested in how its done:

    Code:
    <key>UndockedIconLabelStyle</key>
    <string>
    
    font-size: 10px; 
    color: white; 
    background-color: #000; 
    width: 72px; /* bit of a guess, but seems about right */
    text-align: center; 
    
    opacity: 0.7; /* transparency */
    -webkit-border-radius: 6px; /* The corner radius */
    
    border: solid 1px #666; 
    height: 11px; /* height seems to be 13px minus 2px for border */
    
    </string>
    !!!UPDATE!!!

    Not sure if anyone actually cares about this lol but slight improvement... shiney 3 tone labels:



    Code:
        background-image: -webkit-gradient(linear, left top, left bottom,
                        color-stop(0.40, #444),
                        color-stop(0.2, #666),
                        color-stop(0.60, #000));
    CSS3 (and safari) Rocks

    Download Below:
    Icon Label BG.theme.zip

    Unzip, then put the folder in: /private/var/stash/Themes

    Edit Info.plist to your liking
    Last edited by Dfects; 10-18-2009 at 04:17 AM. Reason: Automerged Doublepost

  2. The Following 4 Users Say Thank You to Dfects For This Useful Post:

    love2drive2fast (01-15-2010), Quailitynoob (10-18-2009), rumcajs (09-19-2010), wim66 (01-16-2010)

  3. #2
    Green Apple Quailitynoob's Avatar
    Join Date
    Jul 2009
    Posts
    64
    Thanks
    30
    Thanked 7 Times in 7 Posts

    No help but where would I put this code to get the rounded corner icon labels looking right now in my iphone

    [Update] found it

    Ok sample Thanks
    Last edited by Quailitynoob; 10-18-2009 at 04:25 AM.

  4. #3
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    6
    Thanks
    0
    Thanked 5 Times in 2 Posts

    Quote Originally Posted by Quailitynoob View Post
    No help but where would I put this code to get the rounded corner icon labels looking right now in my iphone

    [Update] found it
    Added a sample Info.plist to my original post

  5. The Following User Says Thank You to Dfects For This Useful Post:

    Quailitynoob (10-18-2009)

  6. #4
    Green Apple Quailitynoob's Avatar
    Join Date
    Jul 2009
    Posts
    64
    Thanks
    30
    Thanked 7 Times in 7 Posts

    Sweet Looks good for me.. I may narrow them down a bit but definitely highlights them Thanks

  7. #5
    iPhone? More like MyPhone bubonicbryan's Avatar
    Join Date
    Dec 2007
    Posts
    152
    Thanks
    4
    Thanked 22 Times in 11 Posts

    This is great! More people need to know about this!
    iPhizzle

  8. #6
    iPhone? More like MyPhone Timka21105's Avatar
    Join Date
    Nov 2009
    Posts
    102
    Thanks
    7
    Thanked 5 Times in 5 Posts

    yeah, bryan said,
    but i wish it would size according to the text
    Tima Kudinov

  9. #7
    Green Apple
    Join Date
    Aug 2007
    Posts
    52
    Thanks
    9
    Thanked 9 Times in 6 Posts

    Very cool !!!

    Thanks for sharing !!!

    I don't like icon labels, but it also works other places (namely the status bar clock)

    Mark

  10. #8
    What's Jailbreak?
    Join Date
    Feb 2008
    Posts
    16
    Thanks
    0
    Thanked 10 Times in 6 Posts

    Figured out how to make them auto-size according to the text length. Here's a screenie and the code to use:


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>

    <key>CalendarIconDateStyle</key>
    <string>color: transparent;</string>

    <key>CalendarIconDayStyle</key>
    <string>color: transparent;</string>

    <key>UndockedIconLabelStyle</key>
    <string>
    font-size: 10px;
    color: white; text-shadow: #000000 0px 1px 2px;
    background-color: #000;
    padding: 0px 6px 0px 6px;
    margin: 0px 0px 1px 0px;
    float:left;
    text-align: center;
    opacity: 0.5;
    -webkit-border-radius: 6px;
    </string>

    <key>DockedIconLabelStyle</key>
    <string>color: transparent; text-shadow: #000000 0px 1px 2px;</string>

    <key>TimeStyle</key>
    <string>/*font-family: monospace; font-size: 16px*/ color: transparent </string>

    </dict>
    </plist>
    Attached Thumbnails Attached Thumbnails Icon label background with rounded corners and opacity-img_0002.png  

  11. The Following User Says Thank You to Danimator For This Useful Post:

    lollol (05-07-2010)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts