Skip to content

Commit

Permalink
Change route button color with other UI elements
Browse files Browse the repository at this point in the history
Closes #15. Also sets up the route button to easily implement custom
colors, like #14.
  • Loading branch information
cgm616 committed Sep 4, 2016
1 parent b95ae9d commit d5b3364
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions VolumeBar.xm
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@
[volumeSlider volumeSlider].maximumValueImage = [maximum scaleImageToSize:maxSize alpha:1.0];
}

if(_showRouteButton) {
UIButton *routeButton = [volumeSlider _routeButton];
UIImage *routeImage = [routeButton imageForState:UIControlStateNormal];
[routeButton setImage:[routeImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] forState:UIControlStateNormal];
routeButton.tintColor = [UIColor colorWithRed:brightness green:brightness blue:brightness alpha:1.0];
}

[mainView addSubview:volumeSlider];

if(_slideHandle && !_statusBar) { // set up swipe handler and create handle view, add to mainView
Expand Down

0 comments on commit d5b3364

Please sign in to comment.