-
10-18-2009, 03:28 AM #1
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:
!!!UPDATE!!!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>
Not sure if anyone actually cares about this lol but slight improvement... shiney 3 tone labels:

CSS3 (and safari) RocksCode:background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.40, #444), color-stop(0.2, #666), color-stop(0.60, #000));
Download Below:
Icon Label BG.theme.zip
Unzip, then put the folder in: /private/var/stash/Themes
Edit Info.plist to your likingLast edited by Dfects; 10-18-2009 at 04:17 AM. Reason: Automerged Doublepost
-
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)
-
10-18-2009, 03:50 AM #2
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.
-
10-18-2009, 04:07 AM #3
-
The Following User Says Thank You to Dfects For This Useful Post:
Quailitynoob (10-18-2009)
-
10-18-2009, 04:32 AM #4
Sweet Looks good for me.. I may narrow them down a bit but definitely highlights them Thanks
-
01-08-2010, 04:52 PM #5
This is great! More people need to know about this!
iPhizzle
-
01-09-2010, 11:51 PM #6
yeah, bryan said,
but i wish it would size according to the text
Tima Kudinov 
-
01-15-2010, 09:12 PM #7
Very cool !!!
Thanks for sharing !!!
I don't like icon labels, but it also works other places (namely the status bar clock)
Mark
-
01-20-2010, 12:50 PM #8
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>
-
The Following User Says Thank You to Danimator For This Useful Post:
lollol (05-07-2010)



LinkBack URL
About LinkBacks
Reply With Quote
