Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

bug with FXForm #83

Closed
realcarlos opened this issue Oct 31, 2015 · 6 comments
Closed

bug with FXForm #83

realcarlos opened this issue Oct 31, 2015 · 6 comments

Comments

@realcarlos
Copy link

when set [Chameleon setGlobalThemeUsingPrimaryColor:[UIColor flatBlueColor] withContentStyle:UIContentStyleContrast];

UIStatusBar and UITableViewCell display the wrong color.

@bre7
Copy link
Collaborator

bre7 commented Oct 31, 2015

Upload a screenshot if you can

@realcarlos
Copy link
Author

screen shot 2015-11-01 at 6 55 42 pm
sau8 phtka 7 tv1_ mqu0
and same problem occurs in UIImagePickerController ,the background color of cancel button and choose button

@bre7 bre7 added the Bug label Nov 9, 2015
@bre7
Copy link
Collaborator

bre7 commented Nov 9, 2015

Which color should it be ? Keep in mind that globalTheme methods affect almost all the UI components in the app

@realcarlos
Copy link
Author

I think that the color of checkmark should be flatBlueColor,but it becomes white.

@bre7
Copy link
Collaborator

bre7 commented Nov 11, 2015

That's because of how UIBittons are themed.

@vicc
Copy link
Owner

vicc commented Nov 26, 2015

UIStatusBar and UITableViewCell display the wrong color.

If you're seeing unexpected results for UIStatusBar, make sure you set the following key View controller-based status bar appearance in your info.plist file to NO.

With regards to the UITableViewCell, I have found a solution. Add these two lines to your view controller and it should fix the problem:

[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UITableViewCell class]]] setBackgroundColor:ClearColor];
[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UITableViewCell class]]] setTintColor:FlatBlue];

The reason I haven't added this is because I haven't decided whether it should be the default behavior or not. Obviously this is really useful, but it also messes up any other button in a UITableViewCell. Until I figure out how to only affect these accessory view buttons and not all UIButton's inside UITabelViewCell's it'll just have to be done manually.

and same problem occurs in UIImagePickerController ,the background color of cancel button and choose button

This has been solved in Chameleon 2.0.5. 👍

@vicc vicc closed this as completed Nov 26, 2015
@vicc vicc added the Completed label Nov 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants