Skip to content

Commit

Permalink
Correct initial colors
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Aug 12, 2021
1 parent 17aa020 commit 13a9e60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/redux/ui/pref_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ abstract class PrefState implements Built<PrefState, PrefStateBuilder> {
static void _initializeBuilder(PrefStateBuilder builder) => builder
..useSidebarEditor.replace(BuiltMap<EntityType, bool>())
..sortFields.replace(BuiltMap<EntityType, PrefStateSortField>())
..customColors.replace(builder.enableDarkMode
..customColors.replace(builder.enableDarkMode == true
? BuiltMap<String, String>()
: BuiltMap<String, String>(PrefState.CONTRAST_COLORS))
..showKanban = false
..isPreviewEnabled = true
..colorTheme = builder.enableDarkMode ? kColorThemeLight : kColorThemeLight;
..colorTheme =
builder.enableDarkMode == true ? kColorThemeLight : kColorThemeLight;

static Serializer<PrefState> get serializer => _$prefStateSerializer;
}
Expand Down

0 comments on commit 13a9e60

Please sign in to comment.