Skip to content

Commit

Permalink
fix: remove text theme tints (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Aug 31, 2024
1 parent acf9bf1 commit 1f684a3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions lib/src/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ ThemeData _phoenixTheme({
}

ColorScheme _darkScheme(Color color) {
return ColorScheme.fromSeed(
final colorScheme = ColorScheme.fromSeed(
seedColor: color,
brightness: Brightness.dark,
surfaceTint: _darkBase,
Expand All @@ -124,16 +124,32 @@ ColorScheme _darkScheme(Color color) {
background: _darkBase,
outline: _darkBase.scale(lightness: 0.28),
);
return colorScheme.copyWith(
onSurface: colorScheme.onSurface.scale(
saturation: -1,
),
onSurfaceVariant: colorScheme.onSurfaceVariant.scale(
saturation: -1,
),
);
}

ColorScheme _lightScheme(Color color) {
return ColorScheme.fromSeed(
final colorScheme = ColorScheme.fromSeed(
seedColor: color,
brightness: Brightness.light,
surface: _lightBase,
surfaceTint: _lightBase,
outline: Colors.white.scale(lightness: -0.3),
);
return colorScheme.copyWith(
onSurface: colorScheme.onSurface.scale(
saturation: -1,
),
onSurfaceVariant: colorScheme.onSurfaceVariant.scale(
saturation: -1,
),
);
}

DividerThemeData _dividerTheme(ColorScheme colorScheme) => DividerThemeData(
Expand Down

0 comments on commit 1f684a3

Please sign in to comment.