Changelog History
Page 2
-
v2.0.0 Changes
- โ Added support for hex colors, colors from images, themes, and lighten and darken by percentage methods. (By @ViccAlexander)
Added Methods
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;
๐ ###### Deprecated Methods
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;
Added Macros
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)
-
v1.2.1 Changes
โข Added cocoapods support for Swift 2 (Thanks to @bre7).
-
v1.2.0 Changes
๐ โข 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.
โข RenamedConstants.swift
toChameleonShorthand.swift
๐ ###### Deprecated Methods
FlatVersionOfColor(color)
ColorScheme(colorSchemeType: ColorScheme, color: UIColor, isFlatScheme: Bool)
Replaced with:
ColorSchemeOf(colorSchemeType: ColorScheme, color: UIColor, isFlatScheme: Bool)
due to naming constraints. -
v1.1.3 Changes
โข 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 ofUIShadeStyleLight
(Fixed by @smokyonion).
๐ โข UIGraphics context now uses the current screen's scale, preventing pixel wrap around for certainUIColors
generated by+ (UIColor *)colorWithGradientStyle
methods (Fixed by @alist).
๐ โข Removed warnings regarding the absolute value functionfabsf
(Fixed by @jherran).
โข Fixed the `UIColor+Chameleon.m:444:13: code will never be executed`, error state (Fixed by @jherran). -
v1.1.2 Changes
โก๏ธ โข Updated Copyright in all files and launch images
โข Added Launch Image in example project for iPhone 6 & iPhone 6 Plus
๐ โข Replaced the reserved wordfor
with the wordwith
inarrayOfColorsWithColorScheme
(Fixed by @sfader).๐ ###### Deprecated Methods
initWithArray:for:flatScheme:
Replaced with:
initWithArray:with:flatScheme:
-
v1.1.1 Changes
- ๐
ShadeStyle
is nowUIShadeStyle
- ๐
GradientStyle
is nowUIGradientStyle
- ๐
light
is nowUIShadeStyleLight
- ๐
dark
is nowUIShadeStyleDark
- ๐
linearGradientLeftToRight
is nowUIGradientStyleLeftToRight
- ๐
linearGradientTopToBottom
is nowUIGradientStyleTopToBottom
- โ Added:
UIGradientStyleRadial
- ๐
-
v1.1.0 Changes
- โ 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
๐ ###### Deprecated Methods
colorWithContrastingBlackOrWhiteColorOn:
Replaced with:
colorWithContrastingBlackOrWhiteColorOn:isFlat:
๐ ###### Deprecated Macros
ContrastingColorOf(backgroundColor)
Replaced with:
ContrastingColorOf(backgroundColor, isFlat)
ComplementaryColorOf(color)
Replaced with:
ComplementaryFlatColorOf(color)
RandomColorWithShade(shade)
Replaced with:
RandomFlatColorWithShade(shade)