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

Commit

Permalink
Updated for 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicc Alexander committed Sep 2, 2014
1 parent 9847d80 commit 7c2e41d
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ With iOS 7, Apple mainstreamed flat colors. Now, with the impending release of i

![Gradients](http://i.imgur.com/7hTa5Pd.png)

![](http://i.imgur.com/DqJGhN2.png)

### Xcode Quick Help Documentation ![New](http://i.imgur.com/BX3b9ES.png)

Chameleon's documentation, while written as clearly and concisely as possible (Thank [Asia](https://github.com/aekwan) for that!), may still render some slightly confused. But don't fret! Staying true to our vision of simplifying the entire color process, we added Xcode Quick Help's Documentation Support! Simply highlight a Chameleon method or tap it with three fingers to find out more about what it is and what it does!
Expand Down Expand Up @@ -181,14 +183,18 @@ Otherwise, you can perform the following method call to specify whether it shoul

######Normal Convention:
```objective-c
[UIColor colorWithRandomFlatColorOfShadeStyle:light];
[UIColor colorWithRandomFlatColorOfShadeStyle:UIShadeStyleLight];
```
######Chameleon Shorthand:
```objective-c
RandomFlatColorWithShade(light);
RandomFlatColorWithShade(UIShadeStyleLight);
```

**UIShadeStyles:**
* `UIShadeStyleLight`
* `UIShadeStyleDark`

####Complementary Color
To generate a complementary color, perform the following method call, remembering to specify the color whose complement you want:

Expand Down Expand Up @@ -238,13 +244,16 @@ FlatVersionOf(color);
Using a gradient to color an object usually requires a couple of lines of code plus many more lines to superimpose smart contrasting text. Thankfully, Chameleon takes care of that for you. We've introduced a new way to have multicolored objects, and that's with gradients!

#####Gradient Styles
At the moment, Chameleon only provides two simple linear gradient styles. You can either impose gradient that goes from top to bottom or left to right of a secreen. More styles are coming soon!
Chameleon provides three simple gradient styles. Gradients can be created from any number of colors you desire as long as at least two colors are provided. Don't forget that the contrasting text feature is also compatible with gradient colors!

Gradients can be creaed from any number of colors you desire as long as at least two colors is provided. Don't forget that the contrasting text feature is also compatible with gradient colors!
**UIGradientStyles:**
* `UIGradientStyleLeftToRight`
* `UIGradientStyleTopToBottom`
* `UIGradientStyleRadial`

######Normal Convention:
```objective-c
[UIColor colorWithGradientStyle:(GradientStyle)gradientStyle withFrame:(CGRect)frame andColors:(NSArray *)colors];
[UIColor colorWithGradientStyle:(UIGradientStyle)gradientStyle withFrame:(CGRect)frame andColors:(NSArray *)colors];
```
######Chameleon Shorthand:
Expand All @@ -253,6 +262,8 @@ GradientColor(gradientStyle, frame, colors);
```
Note: If you use the Chameleon Shorthand, and use the NSArray literal ```@[]``` to set the array of colors, make sure you add parenthesis around it, or else you'll get an error.

Note: Also note that `UIGradientStyleRadial` only uses a maximum of 2 colors at the moment. So if more colors are provided, they will not show.

###UIStatusBarStyle Methods
####Contrasting UIStatusBarStyle
Many apps on the market, even the most popular ones, overlook this aspect of a beautiful app: the status bar style. Assuming you have a `ViewController` embedded in a `NavigationController`, do the following in the `NavigationController`'s class:
Expand Down Expand Up @@ -377,13 +388,24 @@ Huge thanks to the following people for helping make Chameleon possible (serious
* ~~Xcode In-App Documentation~~ ![1.1.0](http://i.imgur.com/Py4QvaK.png)
* ~~Switch from RGB values over to HSB and LAB~~ ![1.1.0](http://i.imgur.com/Py4QvaK.png)
* ~~Gradient Colors~~ ![1.1.0](http://i.imgur.com/Py4QvaK.png)
* ~~Update GradientStyle & ShadeStyle Syntax~~ ![1.1.1](http://i.imgur.com/AHxj8Rb.png)
* ~~Add Radial Gradient Support~~ ![1.1.1](http://i.imgur.com/AHxj8Rb.png)
* Update Sample App
* Swift Version
* Color Scheme From Images
* Flatify Support for other Controllers
* UIAppearance Convenience Methods

## 📄 Change Log
### 1.1.1
* ```ShadeStyle``` is now ```UIShadeStyle```
* ```GradientStyle``` is now ```UIGradientStyle```
* ```light``` is now ```UIShadeStyleLight```
* ```dark``` is now ```UIShadeStyleDark```
* ```linearGradientLeftToRight``` is now ```UIGradientStyleLeftToRight```
* ```linearGradientTopToBottom``` is now ```UIGradientStyleTopToBottom```
* Added: ```UIGradientStyleRadial```

### 1.1.0
* Added Gradient Colors
* Added Storyboard Palette Add-on
Expand Down

0 comments on commit 7c2e41d

Please sign in to comment.