fix: Colors

This commit is contained in:
Krille Fear 2021-11-15 07:36:07 +01:00
parent a7a15f9481
commit 1ef2af0a82
2 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ abstract class FluffyThemes {
primary: AppConfig.chatColor,
secondary: AppConfig.chatColor,
secondaryVariant: AppConfig.secondaryColor,
surface: FluffyThemes.lighten(AppConfig.chatColor, 0.51),
surface: FluffyThemes.lighten(AppConfig.chatColor, 0.535),
),
backgroundColor: Colors.white,
secondaryHeaderColor: Colors.blueGrey.shade50,
@ -132,7 +132,7 @@ abstract class FluffyThemes {
primary: FluffyThemes.lighten(AppConfig.chatColor, 0.33),
secondary: FluffyThemes.lighten(AppConfig.chatColor, 0.33),
secondaryVariant: AppConfig.secondaryColor,
surface: FluffyThemes.darken(AppConfig.chatColor, 0.4),
surface: FluffyThemes.darken(AppConfig.chatColor, 0.35),
),
secondaryHeaderColor: Colors.blueGrey.shade900,
textTheme: Typography.material2018().white.merge(fallbackTextTheme),

View File

@ -51,12 +51,12 @@ class SettingsStyleController extends State<SettingsStyle> {
AdaptiveThemeMode currentTheme;
static List<Color> customColors = [
static List<Color> get customColors => [
AppConfig.primaryColor,
Colors.blue.shade700,
Colors.green.shade700,
Colors.pink.shade700,
Colors.orange.shade800,
HSLColor.fromColor(AppConfig.primaryColor).withHue(200).toColor(),
HSLColor.fromColor(AppConfig.primaryColor).withHue(130).toColor(),
HSLColor.fromColor(AppConfig.primaryColor).withHue(65).toColor(),
HSLColor.fromColor(AppConfig.primaryColor).withHue(8).toColor(),
];
void switchTheme(AdaptiveThemeMode newTheme) {