<commit_before>HTPressableButton
==============
HTPressableButton is designed for iOS developers to be able to focus more on other tasks instead of making a pretty button. It has a Flat UI design and is very easy to integrate.


Installation
-------------------
HTPressableButton can be installed via [Cocoapods](http://cocoapods.org/)

```ruby
pod 'HTPressableButton'
```

Another option is to use git submodules or just [download it](https://github.com/Grouper/FlatUIKit/archive/master.zip) and include it in your project manually.

**NOTE:** Please be reminded to add the header file when implementing

```objective-c
#import "HTPressableButton.h"
#import "UIColor+HTColor.h"
```

The second header file is not needed if you do not wish to use the Flat UI colors provided, but only use the default UIColors given by Apple.

Components
-------------------
###Rectangular Button
```objective-c
    HTPressableButton *rectButton = [HTPressableButton buttonWithType:UIButtonTypeCustom];
    rectButton.frame = CGRectMake(30, 150, 260, 50);
    rectButton.buttonColor = [UIColor grapeFruitColor];
    rectButton.shadowColor = [UIColor grapeFruitDarkColor];
    rectButton.style = rect;
    [rectButton setTitle:@"Rect" forState:UIControlStateNormal];
    [self.view addSubview:rectButton];
```

![HTPressableButton](https://raw.githubusercontent.com/herinkc/HTPressableButton/master/READMEImages/RectButtonImage.gif?token=3966522__eyJzY29wZSI6IlJhd0Jsb2I6aGVyaW5rYy9IVFByZXNzYWJsZUJ1dHRvbi9tYXN0ZXIvUkVBRE1FSW1hZ2VzL1JlY3RCdXR0b25JbWFnZS5naWYiLCJleHBpcmVzIjoxMzk4OTY0NDg0fQ%3D%3D--f8882a05961b42509cb76cadc33bff716248e584)


###Rounded Rectangular Button
```objective-c
    HTPressableButton *roundedRectButton = [HTPressableButton buttonWithType:UIButtonTypeCustom];
    roundedRectButton.frame = CGRectMake(30, 230, 260, 50);
    roundedRectButton.style = rounded;
    [roundedRectButton setTitle:@"Rounded" forState:UIControlStateNormal];
    [self.view addSubview:roundedRectButton];
```

![HTPressableButton](https://raw.githubusercontent.com/herinkc/HTPressableButton/master/READMEImages/RoundedRectButtonImage.gif?token=<KEY> <PASSWORD>%3D--4049b9f971c220426b67c8e6b812d6a163a04e8a)


###Circular Button
```objective-c
    //Circular mint color button
    HTPressableButton *circularButton = [HTPressableButton buttonWithType:UIButtonTypeCustom];
    circularButton.frame = CGRectMake(110, 300, 100, 100);
    circularButton.style = circular;
    circularButton.buttonColor = [UIColor mintColor];
    circularButton.shadowColor = [UIColor mintDarkColor];
    [circularButton setTitle:@"Circular" forState:UIControlStateNormal];
    [self.view addSubview:circularButton];
```

![HTPressableButton](https://raw.githubusercontent.com/herinkc/HTPressableButton/master/READMEImages/CircularButtonImage.gif?token=<KEY>)


**NOTE:** We have set some default values, incase you do not wish to specify some attributes
```code
	style = rect
	shadowHeight = buttonSize *0.17
	titleLabel.font = Avenir size:18
```


License
-------------------
This projected is licensed under the terms of the [MIT license](https://github.com/herinkc/HTPressableButton/blob/master/LICENSE).<commit_msg>[README edited] Added UIColor list without preview<commit_after>HTPressableButton
==============
HTPressableButton is designed for iOS developers to be able to focus more on other tasks instead of making a pretty button. It has a Flat UI design and is very easy to integrate.


Installation
-------------------
HTPressableButton can be installed via [Cocoapods](http://cocoapods.org/)

```ruby
pod 'HTPressableButton'
```

Another option is to use git submodules or just [download it](https://github.com/Grouper/FlatUIKit/archive/master.zip) and include it in your project manually.

**NOTE:** Please be reminded to add the header file when implementing

```objective-c
#import "HTPressableButton.h"
#import "UIColor+HTColor.h"
```

The second header file is not needed if you do not wish to use the Flat UI colors provided, but only use the default UIColors given by Apple.

Components
-------------------
###Rectangular Button
```objective-c
    HTPressableButton *rectButton = [HTPressableButton buttonWithType:UIButtonTypeCustom];
    rectButton.frame = CGRectMake(30, 150, 260, 50);
    rectButton.buttonColor = [UIColor grapeFruitColor];
    rectButton.shadowColor = [UIColor grapeFruitDarkColor];
    rectButton.style = rect;
    [rectButton setTitle:@"Rect" forState:UIControlStateNormal];
    [self.view addSubview:rectButton];
```

![HTPressableButton](https://raw.githubusercontent.com/herinkc/HTPressableButton/master/READMEImages/RectButtonImage.gif?token=3966522__eyJzY29wZSI6IlJhd0Jsb2I6aGVyaW5rYy9IVFByZXNzYWJsZUJ1dHRvbi9tYXN0ZXIvUkVBRE1FSW1hZ2VzL1JlY3RCdXR0b25JbWFnZS5naWYiLCJleHBpcmVzIjox<PASSWORD>OTY0NDg0<PASSWORD>%3D--f8882a05961b42509cb76cadc33bff716248e584)


###Rounded Rectangular Button
```objective-c
    HTPressableButton *roundedRectButton = [HTPressableButton buttonWithType:UIButtonTypeCustom];
    roundedRectButton.frame = CGRectMake(30, 230, 260, 50);
    roundedRectButton.style = rounded;
    [roundedRectButton setTitle:@"Rounded" forState:UIControlStateNormal];
    [self.view addSubview:roundedRectButton];
```

![HTPressableButton](https://raw.githubusercontent.com/herinkc/HTPressableButton/master/READMEImages/RoundedRectButtonImage.gif?token=3966522__eyJzY29wZSI6IlJhd0Jsb2I6aGVyaW5rYy9IVFByZXNzYWJsZUJ1dHRvbi9tYXN0ZXIvUkVBRE1FSW1hZ2VzL1JvdW5kZWRSZWN0QnV0dG9uSW1hZ2UuZ2lmIiwiZXhwaXJlcyI6MTM5ODk2ND<PASSWORD>%3D--4049b9f971c220426b67c8e6b812d6a163a04e8a)


###Circular Button
```objective-c
    //Circular mint color button
    HTPressableButton *circularButton = [HTPressableButton buttonWithType:UIButtonTypeCustom];
    circularButton.frame = CGRectMake(110, 300, 100, 100);
    circularButton.style = circular;
    circularButton.buttonColor = [UIColor mintColor];
    circularButton.shadowColor = [UIColor mintDarkColor];
    [circularButton setTitle:@"Circular" forState:UIControlStateNormal];
    [self.view addSubview:circularButton];
```

![HTPressableButton](https://raw.githubusercontent.com/herinkc/HTPressableButton/master/READMEImages/CircularButtonImage.gif?token=<KEY>)


**NOTE:** We have set some default values, incase you do not wish to specify some attributes
```code
	style = rect
	shadowHeight = buttonSize *0.17
	titleLabel.font = Avenir size:18
```

###Additional UIColors
#####A list of UIColors that can be used:

[Designmodo's color schemes](http://designmodo.github.io/FlatUI/)

```objective-c
	+ (UIColor *) turquoiseColor;
	+ (UIColor *) greenSeaColor;
	+ (UIColor *) emelaldColor;
	+ (UIColor *) nephritisColor;
	+ (UIColor *) peterRiverColor;
	+ (UIColor *) belizeHoleColor;
	+ (UIColor *) amethystColor;
	+ (UIColor *) wisteriaColor;
	+ (UIColor *) wetAsphaltColor;
	+ (UIColor *) midnightBlueColor;
	+ (UIColor *) sunflowerColor;
	+ (UIColor *) citrusColor;
	+ (UIColor *) carrotColor;
	+ (UIColor *) pumpkinColor;
	+ (UIColor *) alizarinColor;
	+ (UIColor *) pomegranateColor;
	+ (UIColor *) cloudsColor;
	+ (UIColor *) silverColor;
	+ (UIColor *) concreteColor;
	+ (UIColor *) asbestosColor;
```

Flat color schemes

```objective-c
	+ (UIColor *) grapeFruitColor;
	+ (UIColor *) grapeFruitDarkColor;
	+ (UIColor *) bitterSweetColor;
	+ (UIColor *) bitterSweetDarkColor;
	+ (UIColor *) lemonColor;
	+ (UIColor *) lemonDarkColor;
	+ (UIColor *) grassColor;
	+ (UIColor *) grassDarkColor;
	+ (UIColor *) mintColor;
	+ (UIColor *) mintDarkColor;
	+ (UIColor *) aquaColor;
	+ (UIColor *) aquaDarkColor;
	+ (UIColor *) blueJeansColor;
	+ (UIColor *) blueJeansDarkColor;
	+ (UIColor *) lavenderColor;
	+ (UIColor *) lavenderDarkColor;
	+ (UIColor *) pinkRoseColor;
	+ (UIColor *) pinkRoseDarkColor;
	+ (UIColor *) ashColor;
	+ (UIColor *) ashDarkColor;
	+ (UIColor *) mediumColor;
	+ (UIColor *) mediumDarkColor;
	+ (UIColor *) leadColor;
	+ (UIColor *) leadDarkColor;
```

[Thanakron Tandavas](http://tandavas.com) color scheme

```objective-c
	+ (UIColor *) jayColor;
	+ (UIColor *) jayDarkColor;
```

License
-------------------
This projected is licensed under the terms of the [MIT license](https://github.com/herinkc/HTPressableButton/blob/master/LICENSE).
{'fraction_non_alphanumeric': 0.1250456593205893, 'fraction_numerical': 0.03409229270668453, 'mean_word_length': 5.539808917197452, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6009775', 'n_tokens_mistral': 3011, 'n_tokens_neox': 2761, 'n_words': 563}