vicc / chameleon

Color framework for Swift & Objective-C (Gradient colors, hexcode support, colors from images & more).
Other
12.43k stars 1.31k forks source link

bug with FXForm #83

Closed realcarlos closed 8 years ago

realcarlos commented 9 years ago

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

UIStatusBar and UITableViewCell display the wrong color.

bre7 commented 9 years ago

Upload a screenshot if you can

realcarlos commented 9 years ago

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 commented 8 years ago

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

realcarlos commented 8 years ago

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

bre7 commented 8 years ago

That's because of how UIBittons are themed.

vicc commented 8 years ago

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. :+1: