robertwijas / UISS

UIAppearance Stylesheets
MIT License
1.23k stars 80 forks source link

UISS by ID or Class #24

Closed fnxpt closed 9 years ago

fnxpt commented 11 years ago

Just discoved UISS and its really great... Is there any way to specify a class or Id to a object and then change its theme? I have a UIButton subclass that has 2 status... if the status = 0 it has a grey background image and if its 1 it has a green background image and when I change the theme I want the status = 0 to use a red image and when 1 I want a blue image instead. Is it possible to have something like:

{ "UIButton#Status0": { "backgroundImage": "$img0" }, "UIButton#Status1": { "backgroundImage": "$img1" } }

fnxpt commented 9 years ago

I don't use this anymore... so I'm closing this issue