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

Changing CLImageEditorTheme properties don't affect style #219

Open
ARGAMX opened this issue Oct 2, 2018 · 1 comment
Open

Changing CLImageEditorTheme properties don't affect style #219

ARGAMX opened this issue Oct 2, 2018 · 1 comment

Comments

@ARGAMX
Copy link

ARGAMX commented Oct 2, 2018

Changing CLImageEditorTheme properties don't affect style

[CLImageEditorTheme theme].backgroundColor = [UIColor blackColor];
[CLImageEditorTheme theme].toolbarColor = [UIColor blackColor];
[CLImageEditorTheme theme].toolbarTextColor = [UIColor blackColor];
CLImageEditor *editor = [[CLImageEditor alloc] initWithImage:image];
editor.theme.backgroundColor = [UIColor blackColor];
editor.theme.toolbarColor = [UIColor blackColor];
editor.theme.toolbarTextColor = [UIColor blackColor];
editor.delegate = self;

[picker presentViewController:editor animated:YES completion:nil];

No success, still showing white Top Bar with 'Back' and 'OK' on any filter press.

@brentkevern
Copy link

I bumped into this too. CLImageEditor is not setting the navigation bar color. In the _CLImageEditorViewController.m file, there is a method named -(void)initNavigationBar. Find the line that reads _navigationBar = navigationBar; Immediately after that, I used the following code to set the nav bar color using the toolbarColor from the theme. Not perfect, but it worked.

_navigationBar.barTintColor = [CLImageEditorTheme theme].toolbarColor ;

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

No branches or pull requests

2 participants