From 17aa0204b133466091ac10a121deee568e26a473 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 12 Aug 2021 21:04:50 +0300 Subject: [PATCH] Correct initial colors --- lib/redux/ui/pref_state.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/redux/ui/pref_state.dart b/lib/redux/ui/pref_state.dart index 7a96f0de5ae..54683f6fcf9 100644 --- a/lib/redux/ui/pref_state.dart +++ b/lib/redux/ui/pref_state.dart @@ -158,10 +158,12 @@ abstract class PrefState implements Built { static void _initializeBuilder(PrefStateBuilder builder) => builder ..useSidebarEditor.replace(BuiltMap()) ..sortFields.replace(BuiltMap()) - ..customColors.replace(BuiltMap(PrefState.CONTRAST_COLORS)) + ..customColors.replace(builder.enableDarkMode + ? BuiltMap() + : BuiltMap(PrefState.CONTRAST_COLORS)) ..showKanban = false ..isPreviewEnabled = true - ..colorTheme = kColorThemeLight; + ..colorTheme = builder.enableDarkMode ? kColorThemeLight : kColorThemeLight; static Serializer get serializer => _$prefStateSerializer; }