Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Pseudo-classes (e.g. Button:highlighted) #39

Open
tombenner opened this issue Jan 3, 2013 · 2 comments
Open

Support Pseudo-classes (e.g. Button:highlighted) #39

tombenner opened this issue Jan 3, 2013 · 2 comments

Comments

@tombenner
Copy link
Owner

This is currently handled with property suffixes (e.g. font-color-highlighted), but it should be done with pseudo-classes instead (e.g. Button:highlighted {font-color: black;}). We'll probably want to complete #33 before setting this up.

@benvium
Copy link
Contributor

benvium commented Jan 9, 2013

It's perhaps obvious, but It'd be good if you could set the background color in the highlighted state. With the current set of properties this isn't possible - you can change the text color and the background image, but not the background color.

EDIT: I just noticed that this isn't directly supported by UIKit. E.g. you can set an background image for a state but not a color. Anyone know a way around this?

@tombenner
Copy link
Owner Author

Regarding background-color-highlighted for Button, NUISettings has a getImageFromColor:withClass: method that could be used in conjunction with setBackgroundImage:forState:. I'll try to add this soon, but if anyone else wants to hit it first, feel free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants