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

Tint color? #272

Closed
markst opened this issue Aug 28, 2014 · 3 comments
Closed

Tint color? #272

markst opened this issue Aug 28, 2014 · 3 comments

Comments

@markst
Copy link

markst commented Aug 28, 2014

Since iOS7 it's possible to set the tint color of views.
Is it possible to define the global tint color and of certain views?

@markst
Copy link
Author

markst commented Oct 10, 2014

There doesn't seem to be a global renderer for UIView
So I'd need to implement something like this:

    if ([NUISettings hasProperty:@"tint-color" withClass:className]) {
        [button setTintColor:[NUISettings getColor:@"tint-color" withClass:className]];
    }

for each view renderer?

@fpaaske
Copy link

fpaaske commented Feb 27, 2015

You can set global tint color programatically with [[UIApplication sharedApplication] keyWindow].tintColor = [Color redColor]

Unfortunately, there's no way to load a specific color from the stylesheet, but you could add a class

ThemeColors {
    tint-color: #FF0000;
}

Then use ``[[UIApplication sharedApplication] keyWindow].tintColor = [NUISettings getColor:@"tint-color" withClass:@"ThemeColors"]`

@timbodeit
Copy link
Collaborator

Duplicate of #223.

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

3 participants