- Theme Support for UIImagePickerController (#83)
- Objective-C Demo Project
- Fixed Erroneous Swift Method Naming Convention Warnings
- Bumped up the minimum version of iOS to
8.0
. - Fixed
If-Else
Statement Logic (#48) - Removed cast for
calloc
(#76).
- Minor Fixes.
- Simplified
arrayOfColorsWithColorScheme
(#68) colorWithFlatVersionFrom
alpha bug fix (#69)
- Added
hidesNavigationBarHairline
boolean to UINavigationController, and by default it is now set toNO
. (#64) - Improved Quick-Look Documentation for Theme Methods
- Carthage support added. (By @bre7)
- Demo project added. (By @bre7)
- Shields added to
README
. (By @bre7) - Fixed 'Wrong Navigation Bar Color' bug. (#51) (By @bre7)
- Fixed 'Flatten' bug. (#53) (By @bre7)
- Fixed 'EXC_BAD_ACCESS Error' issue. (#57) (By @bre7)
- Several swift functions were made public. (By @dexter505)
- Added support for hex colors, colors from images, themes, and lighten and darken by percentage methods. (By @ViccAlexander)
Chameleon.h
+ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor withContentStyle:(UIContentStyle)contentStyle;
+ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor withSecondaryColor:(UIColor *)secondaryColor andContentStyle:(UIContentStyle)contentStyle;
+ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor withSecondaryColor:(UIColor *)secondaryColor usingFontName:(NSString *)fontName andContentStyle:(UIContentStyle)contentStyle;
NSArray+Chameleon.h
+ (NSArray *)arrayOfColorsFromImage:(UIImage *)image withFlatScheme (BOOL)isFlatScheme;
UIColor+Chameleon.h
+ (UIColor *)colorWithAverageColorFromImage:(UIImage *)image;
+ (UIColor *)colorWithAverageColorFromImage:(UIImage *)image withAlpha:(CGFloat)alpha;
+ (UIColor *)colorWithRandomFlatColorOfShadeStyle:(UIShadeStyle)shadeStyle withAlpha:(CGFloat)alpha;
+ (UIColor *)colorWithComplementaryFlatColorOf:(UIColor *)color withAlpha:(CGFloat)alpha;
+ (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor isFlat:(BOOL)flat alpha:(CGFloat)alpha;
+ (UIColor *)colorWithFlatVersionOf:(UIColor *)color withAlpha:(CGFloat)alpha;
+ (UIColor *)colorWithHexString:(NSString *)string;
+ (UIColor *)colorWithHexString:(NSString *)string withAlpha:(CGFloat)alpha;
- (UIColor *)flatten;
- (UIColor *)darkenByPercentage:(CGFloat)percentage;
- (UIColor *)lightenByPercentage:(CGFloat)percentage;
UINavigationController+Chameleon.h
- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle;
- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor withContentStyle:(UIContentStyle)contentStyle;
- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor withSecondaryColor:(UIColor *)secondaryColor andContentStyle:(UIContentStyle)contentStyle;
setThemeUsingPrimaryColor:(UIColor *)primaryColor withSecondaryColor:(UIColor *)secondaryColor usingFontName:(NSString *)fontName andContentStyle:(UIContentStyle)contentStyle;
- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle;
NSArray+Chameleon.h
+ (NSArray *)arrayOfColorsWithColorScheme:(ColorScheme)colorScheme with:(UIColor *)color flatScheme:(BOOL)isFlatScheme
Replaced with:
+ (NSArray *)arrayOfColorsWithColorScheme:(ColorScheme)colorScheme usingColor:(UIColor *)color withFlatScheme:(BOOL)isFlatScheme;
UIViewController+Chameleon.h
- (void)flatify;
- (void)flatifyAndContrast;
AverageColorFromImage(image)
AverageColorFromImageWithAlpha(image, alpha)
RandomFlatColorWithShadeAndAlpha(shade, alpha)
ColorsWithScheme(colorSchemeType, color, isFlatScheme)
ComplementaryFlatColorWithAlpha(color, alpha)
ContrastColorWithAlpha(backgroundColor, returnFlat, alpha)
HexColor(hexString)
HexColorWithAlpha(hexString, alpha)
RandomFlatColorWithShadeAndAlpha(shade, alpha)
ColorsFromImage(image, isFlatScheme)
######Deprecated
ColorsWithScheme(colorSchemeType, color, isFlatScheme)
Replaced with:
ColorsWithScheme(colorSchemeType, color, isFlatScheme)
• Added cocoapods support for Swift 2 (Thanks to @bre7).
• Fixed cocoapods installation error #30.
• Updated Swift syntax to Swift 1.2 (Fixed by @peacemoon).
• Split Objective-C & Swift Files into separate folders to keep files better organized.
• Renamed Constants.swift
to ChameleonShorthand.swift
FlatVersionOfColor(color)
ColorScheme(colorSchemeType: ColorScheme, color: UIColor, isFlatScheme: Bool)
Replaced with: ColorSchemeOf(colorSchemeType: ColorScheme, color: UIColor, isFlatScheme: Bool)
due to naming constraints.
• Chameleon shorthand is now supported in Swift. (Thanks to @bre7).
• Fixed Small Syntax Typo. (Fixed by @ddwang).
• Fixed issue where -colorWithRandomFlatColorOfShadeStyle
always returns random color of UIShadeStyleLight
(Fixed by @smokyonion).
• UIGraphics context now uses the current screen's scale, preventing pixel wrap around for certain UIColors
generated by + (UIColor *)colorWithGradientStyle
methods (Fixed by @alist).
• Removed warnings regarding the absolute value function fabsf
(Fixed by @jherran).
• Fixed the *UIColor+Chameleon.m:444:13: code will never be executed*
, error state (Fixed by @jherran).
• Updated Copyright in all files and launch images
• Added Launch Image in example project for iPhone 6 & iPhone 6 Plus
• Replaced the reserved word for
with the word with
in arrayOfColorsWithColorScheme
(Fixed by @sfader).
initWithArray:for:flatScheme:
Replaced with: initWithArray:with:flatScheme:
ShadeStyle
is nowUIShadeStyle
GradientStyle
is nowUIGradientStyle
light
is nowUIShadeStyleLight
dark
is nowUIShadeStyleDark
linearGradientLeftToRight
is nowUIGradientStyleLeftToRight
linearGradientTopToBottom
is nowUIGradientStyleTopToBottom
- Added:
UIGradientStyleRadial
- Added Gradient Colors
- Added Storyboard Palette Add-on
- Added Xcode Quick Help Documentation Support
- Switched from RGB colorspace to HSB & LAB colorspaces (closer to human perception)
- Implemented
ContrastingColor
which supports all alphas and has additional support for non-flat and flat colors - Changed Color difference algorithm so that it now uses CIE:2000 formula
- Changed
RandomFlatColors
from enum to nsarray values - Edited
RandomFlatColor
so that it will no longer spit out the same color back to back - Switched complementary and triadic fourth and fifth colors order.
- New Macro:
ClearColor
colorWithContrastingBlackOrWhiteColorOn:
Replaced with: colorWithContrastingBlackOrWhiteColorOn:isFlat:
ContrastingColorOf(backgroundColor)
Replaced with: ContrastingColorOf(backgroundColor, isFlat)
ComplementaryColorOf(color)
Replaced with: ComplementaryFlatColorOf(color)
RandomColorWithShade(shade)
Replaced with: RandomFlatColorWithShade(shade)