Closed jaspermdegroot closed 12 years ago
Working on the HD retina icons. To my knowledge, .ui-icon-alt never gets used by jQuery Mobile.
You are right about jQuery Mobile JS not using .ui-icon-alt. Don't know why it is in the CSS while you can't use it. Maybe in the future a data attribute data-iconcolor="alt" will become available. Would be nice.
@TylerBenziger
It looks like the fix doesn't work. Can you reopen this issue?
@TylerBenziger
I can confirm this, I've generated CSS yesterday and it's not fixed. I can see white icons on Samsung Galaxy S II while on my desktop browser they're black.
Sorry about this again. NOW it should be fixed. Check the CSS to confirm
Thanks Tyler! I can confirm it is fixed.
I just used the theme roller last night and am having the same issue on my iphone and ipad retina displays. 1.3.0-rc.1
Same as @jbosse with me. Temporarily resolved it with the following CSS:
[data-theme=f] .ui-icon, [data-theme=f] .ui-icon-searchfield:after { background-image: url(images/icons-18-black.png); }
When you select black icon color instead of white, only the regular global icon set gets the right background-image url. The rule for HD/Retina is still linking to the white image sprite. Also the alt icon set doesn't change from black to white.
/* Icons -----------------------------------------------------------------------------------------------------------/ .ui-icon, .ui-icon-searchfield:after { background-image: url(images/icons-18-black.png) /{global-icon-set}/; } / Alt icon color -----------------------------------------------------------------------------------------------------------/ .ui-icon-alt { background-image: url(images/icons-18-black.png); } / HD/"retina" sprite -----------------------------------------------------------------------------------------------------------*/ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-resolution: 240dpi) { .ui-icon-plus, .ui-icon-minus, etc., etc. { background-image: url(images/icons-36-white.png); } .ui-icon-alt { background-image: url(images/icons-36-black.png); } }