Skip to content

Commit

Permalink
added correct theming for selected icon (#6482)
Browse files Browse the repository at this point in the history
The selected icon of the MDCCardCollectionCell should be set in our themers to primaryColor as defined by material guidelines.

closes: b/123439095
  • Loading branch information
yarneo committed Jan 28, 2019
1 parent 62c5097 commit d947748
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/Cards/src/ColorThemer/MDCCardsColorThemer.m
Expand Up @@ -26,6 +26,7 @@ + (void)applySemanticColorScheme:(nonnull id<MDCColorScheming>)colorScheme
+ (void)applySemanticColorScheme:(nonnull id<MDCColorScheming>)colorScheme + (void)applySemanticColorScheme:(nonnull id<MDCColorScheming>)colorScheme
toCardCell:(nonnull MDCCardCollectionCell *)cardCell { toCardCell:(nonnull MDCCardCollectionCell *)cardCell {
cardCell.backgroundColor = colorScheme.surfaceColor; cardCell.backgroundColor = colorScheme.surfaceColor;
[cardCell setImageTintColor:colorScheme.primaryColor forState:MDCCardCellStateNormal];
} }


+ (void)applyOutlinedVariantWithColorScheme:(nonnull id<MDCColorScheming>)colorScheme + (void)applyOutlinedVariantWithColorScheme:(nonnull id<MDCColorScheming>)colorScheme
Expand Down

0 comments on commit d947748

Please sign in to comment.