Skip to content

Commit

Permalink
iOS: Added progressTintColor and trackTintColor
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Oct 29, 2015
1 parent d6a0112 commit a196389
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apidoc/Titanium/UI/ProgressBar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ properties:
summary: Progress bar text.
type: String

- name: progressTintColor
summary: The color shown for the portion of the progress bar that is filled.
type: String
platforms: [iphone, ipad]

- name: trackTintColor
summary: The color shown for the portion of the progress bar that is not filled.
type: String
platforms: [iphone, ipad]

- name: min
summary: Minimum value of the progress bar.
type: Number
Expand Down
12 changes: 12 additions & 0 deletions iphone/Classes/TiUIProgressBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,18 @@ -(void)setColor_:(id)value
[[self messageLabel] setTextColor:newColor];
}

-(void)setProgressTintColor_:(id)value
{
UIColor * newColor = [[TiUtils colorValue:value] _color];
[[self progress] setProgressTintColor:newColor];
}

-(void)setTrackTintColor_:(id)value
{
UIColor * newColor = [[TiUtils colorValue:value] _color];
[[self progress] setTrackTintColor:newColor];
}

-(void)setMessage_:(id)value
{
NSString * text = [TiUtils stringValue:value];
Expand Down

0 comments on commit a196389

Please sign in to comment.