Skip to content

Commit

Permalink
Delegate accent color getters to secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed May 10, 2023
1 parent 18f261f commit 78f72f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/color_material.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,31 +67,31 @@ extension ThemeMaterialColors on ThemeData {
@Deprecated(
'Use `onSecondary` instead. This feature was deprecated after v0.3.2',
)
Color get onAccent => accentColor.contrastColor;
Color get onAccent => onSecondary;

/// The Material Design high emphasis color contrasting with this theme's
/// accent [Color].
@Deprecated(
'Use `highEmphasisOnSecondary` instead. This feature was deprecated after '
'v0.3.2',
)
Color get highEmphasisOnAccent => accentColor.highEmphasisOnColor;
Color get highEmphasisOnAccent => highEmphasisOnSecondary;

/// The Material Design medium emphasis color contrasting with this theme's
/// accent [Color].
@Deprecated(
'Use `mediumEmphasisOnSecondary` instead. This feature was deprecated '
'after v0.3.2',
)
Color get mediumEmphasisOnAccent => accentColor.mediumEmphasisOnColor;
Color get mediumEmphasisOnAccent => mediumEmphasisOnSecondary;

/// The Material Design disabled color contrasting with this theme's
/// accent [Color].
@Deprecated(
'Use `disabledOnSecondary` instead. This feature was deprecated after '
'v0.3.2',
)
Color get disabledOnAccent => accentColor.disabledOnColor;
Color get disabledOnAccent => disabledOnSecondary;

// Secondary color

Expand Down

0 comments on commit 78f72f2

Please sign in to comment.