Skip to content

Commit

Permalink
Merge pull request #5 from angelos/allow_setting_button_colors
Browse files Browse the repository at this point in the history
Allow setting button colors from code
  • Loading branch information
Jimmy Arts committed Jun 8, 2016
2 parents 4e93e6e + 7c3eb0f commit 32dc909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Pod/Classes/YAScrollSegmentControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ IB_DESIGNABLE
@property (nonatomic, assign) IBInspectable CGFloat gradientPercentage;
@property (nonatomic, strong) IBInspectable UIColor *gradientColor;

@property (nonatomic, strong) IBInspectable UIColor *buttonColor;
@property (nonatomic, strong) IBInspectable UIColor *buttonHighlightColor;
@property (nonatomic, strong) IBInspectable UIColor *buttonSelectedColor;

@property (nonatomic, assign) NSInteger selectedIndex;

@property (nonatomic, weak) IBOutlet id <YAScrollSegmentControlDelegate> delegate;
Expand Down
4 changes: 0 additions & 4 deletions Pod/Classes/YAScrollSegmentControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ @interface YAScrollSegmentControl () <UIScrollViewDelegate>
@property (nonatomic, strong) UIView *leftMask;
@property (nonatomic, strong) UIView *rightMask;

@property (nonatomic, strong) IBInspectable UIColor *buttonColor;
@property (nonatomic, strong) IBInspectable UIColor *buttonHighlightColor;
@property (nonatomic, strong) IBInspectable UIColor *buttonSelectedColor;

@property (nonatomic, strong) IBInspectable UIImage *buttonBackgroundImage;
@property (nonatomic, strong) IBInspectable UIImage *buttonHighlightedBackgroundImage;
@property (nonatomic, strong) IBInspectable UIImage *buttonSelectedBackgroundImage;
Expand Down

0 comments on commit 32dc909

Please sign in to comment.