The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-16-2009, 08:08 AM
What's Jailbreak?
 
Join Date: Apr 2009
Device + Firmware: IPod Touch 2.2.1
Operating System: Vista
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Jaimee
Transparent icons vs jpg backgrounds

I am adding some new transparent png icons to my iPod touch. The problem is, the transparent portion of the icons shows up as gray. I am using a script that is often used here, so I know the problem isn't the icon itself. However, other pre-made transparent icons display correctly. What I am wondering is this: is the fact that my background image is a jpg file causing the problem?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 05-16-2009, 09:42 AM
eatjello's Avatar
iPhoneaholic
 
Join Date: Nov 2008
Device + Firmware: iPhone 3gS 16 gig 3.0.1
Operating System: 13' MacBook Pro Snow Leopard 10.6.1 2.53ghz 4gb ram
Location: Leesburg, Virginia
Posts: 323
Thanks: 9
Thanked 56 Times in 41 Posts
Send a message via AIM to eatjello Send a message via MSN to eatjello

is this what you're trying to do? if so there's an alternative to making icons for every app.
Attached Thumbnails
Transparent icons vs jpg backgrounds-img_0002.png  Transparent icons vs jpg backgrounds-img_0003.png  
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 05-16-2009, 10:03 AM
What's Jailbreak?
 
Join Date: Apr 2009
Device + Firmware: IPod Touch 2.2.1
Operating System: Vista
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Jaimee

Thanks for your reply, eatjello.

I'm not sure what you were trying to show me, but if you attached a file to your reply it didn't work or the server hasn't updated to show the attached files.

In any case, I'm running an HTML background using the Time Weather Calendar Theme and I'm thinking that the CSS coding for the background color may be causing some problems with my transparent png icon that I've placed above it. The icon's background is not transparent. (see attached image) I am also running the Categories ap and when I place the icon in one of it's folders, it shows up just fine - transparent, as it should be.

Unfortunately, I know little about css, so don't know how to remove the coding determining the background color of the jpg file it uses for the background image. Below is that css code.

If you have any suggestions on what is causing the transparent icon to be non-transparent in Springboard, or if you know how to modify the css script below to eliminate the background color all together, your assistance would be greatly appreciated.

Code follows:

<!-- change background script-->
<script language="JavaScript">

day=new Date() //..get the date
x=day.getHours() //..get the hour

if(x>=0 && x<6) {
document.write('<style type="text/css">body{background: white url(night.jpg); color: black}</style>')
} else

if(x>=6 && x<9) {
document.write('<style type="text/css">body{background: white url(sunrise.jpg); color: black}</style>')
} else

if(x>=9 && x<11) {
document.write('<style type="text/css">body{background: white url(morning.jpg); color: black}</style>')
} else

if(x>=11 && x<15) {
document.write('<style type="text/css">body{background: white url(day.jpg); color: black}</style>')
} else

if(x>=13 && x<18) {
document.write('<style type="text/css">body{background: white url(afternoon.jpg); color: black}</style>')
} else

if(x>=18 && x<20) {
document.write('<style type="text/css">body{background: white url(sunset.jpg); color: black}</style>')
} else

if (x>=20 && x<24) {
document.write('<style type="text/css">body{background: white url(night.jpg); color: black}</style>')
}
</script>
Attached Thumbnails
Transparent icons vs jpg backgrounds-springboard.jpg  
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 05-16-2009, 06:54 PM
eatjello's Avatar
iPhoneaholic
 
Join Date: Nov 2008
Device + Firmware: iPhone 3gS 16 gig 3.0.1
Operating System: 13' MacBook Pro Snow Leopard 10.6.1 2.53ghz 4gb ram
Location: Leesburg, Virginia
Posts: 323
Thanks: 9
Thanked 56 Times in 41 Posts
Send a message via AIM to eatjello Send a message via MSN to eatjello

Click the image to open in full size.

you're trying to do this, yes?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 05-16-2009, 08:47 PM
What's Jailbreak?
 
Join Date: Apr 2009
Device + Firmware: IPod Touch 2.2.1
Operating System: Vista
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Jaimee

No, not quite what I'm looking to do, but similar. The icons I am using are only partially transparent, not wholly transparent. Only portions of my icons are invisible, well SUPPOSED to be invisible, anyway? See my previous post for a screeny.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 05-16-2009, 10:03 PM
eatjello's Avatar
iPhoneaholic
 
Join Date: Nov 2008
Device + Firmware: iPhone 3gS 16 gig 3.0.1
Operating System: 13' MacBook Pro Snow Leopard 10.6.1 2.53ghz 4gb ram
Location: Leesburg, Virginia
Posts: 323
Thanks: 9
Thanked 56 Times in 41 Posts
Send a message via AIM to eatjello Send a message via MSN to eatjello

i'm not sure if this will work, but try this

where it says

if (x>=20 && x<24) {
document.write('<style type="text/css">body{background: white url(night.jpg); color: black}</style>')

change it to

if (x>=20 && x<24) {
document.write('<style type="text/css">body{background: url(night.jpg); color: }</style>')
}

so just delete the colors that the template wants to force. try it for all those lines
}
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion

Tags
background, icon, jpg, png, transparent

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 04:32 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top