Skip to content

Commit

Permalink
[Slider] Fix green Slider example color (#3292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Moore committed Apr 9, 2018
1 parent 6ef3330 commit 2b37db4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/Slider/examples/SliderCollectionViewController.m
Expand Up @@ -15,6 +15,7 @@
*/

#import "MaterialCollections.h"
#import "MaterialPalettes.h"
#import "MaterialSlider.h"
#import "MaterialTypography.h"
#import "supplemental/SliderCollectionSupplemental.h"
Expand Down Expand Up @@ -102,6 +103,7 @@ - (void)applyModel:(MDCSliderModel *)model {
_slider.filledTrackAnchorValue = model.anchorValue;
_slider.shouldDisplayDiscreteValueLabel = model.discreteValueLabel;
_slider.thumbHollowAtStart = model.hollowCircle;
_slider.color = model.sliderColor;
_slider.enabled = model.enabled;

// Add target/action pair
Expand Down Expand Up @@ -185,6 +187,7 @@ - (instancetype)init {

model = [[MDCSliderModel alloc] init];
model.labelString = @"Green slider without hollow circle at 0";
model.sliderColor = MDCPalette.greenPalette.tint800;
model.hollowCircle = NO;
model.value = 0.f;
[_sliders addObject:model];
Expand Down

0 comments on commit 2b37db4

Please sign in to comment.