new color shit

This commit is contained in:
Kima
2024-03-12 21:15:11 +01:00
parent f1429faf3f
commit e06b92fde7
2 changed files with 37 additions and 5 deletions

View File

@@ -62,9 +62,19 @@ class AppTheme {
: _paletteHighlightLight(palette)) ??
lightColors.highlight;
Color newSecondary = ColorsUtils().darken(accent, amount: 0.4);
Color newSecondary = (accentColor == AccentColor.adaptive ||
accentColor == AccentColor.custom ||
accentColor == AccentColor.ogfilc) ||
!settings.newColors
? accent
: ColorsUtils().darken(accent, amount: 0.4);
// Color newScaffoldBg = ColorsUtils().lighten(accent, amount: 0.4);
Color newTertiary = ColorsUtils().darken(accent, amount: 0.5);
Color newTertiary = (accentColor == AccentColor.adaptive ||
accentColor == AccentColor.custom ||
accentColor == AccentColor.ogfilc) ||
!settings.newColors
? accent
: ColorsUtils().darken(accent, amount: 0.5);
return ThemeData(
brightness: Brightness.light,
@@ -155,8 +165,19 @@ class AppTheme {
: _paletteHighlightDark(palette)) ??
darkColors.highlight;
Color newSecondary = ColorsUtils().lighten(accent, amount: 0.4);
Color newTertiary = ColorsUtils().lighten(accent, amount: 0.5);
Color newSecondary = (accentColor == AccentColor.adaptive ||
accentColor == AccentColor.custom ||
accentColor == AccentColor.ogfilc) ||
!settings.newColors
? accent
: ColorsUtils().lighten(accent, amount: 0.4);
// Color newScaffoldBg = ColorsUtils().lighten(accent, amount: 0.4);
Color newTertiary = (accentColor == AccentColor.adaptive ||
accentColor == AccentColor.custom ||
accentColor == AccentColor.ogfilc) ||
!settings.newColors
? accent
: ColorsUtils().lighten(accent, amount: 0.5);
return ThemeData(
brightness: Brightness.dark,