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

View File

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