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

Automatic dark mode #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Automatic dark mode #86

wants to merge 1 commit into from

Conversation

Jeehut
Copy link

@Jeehut Jeehut commented Dec 24, 2014

I am using MRProgress in several apps. In all apps it seems to be a good idea to choose the same background color like the navigation bar (if one apparent) as the default background color of the progress view. So I changed all default coloring implementation to automatically change to a dark coloring (by simply inverting the colors) when the status bar style is set to LightContent.

Maybe you want to consider to integrate this into MRProgress or think about a similar solution. I've read #59 and couldn't find another working solution for a background tint yet. So I came up with this automatic one. Hope you like it.

@marcelofabri
Copy link
Contributor

Just curious here: does [UIApplication sharedApplication].statusBarStyle work if you use View Controller based status bar style?

@Jeehut
Copy link
Author

Jeehut commented Dec 24, 2014

Haven't tested different styles within one app, but as far as I know a new MRProgressOverlayView is created with each presentation, this would mean it should work. But haven't had a deeper look. Wanna try it out?

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

Successfully merging this pull request may close these issues.

2 participants