Set default color theme
This commit is contained in:
parent
2dd13c6786
commit
eb0e482b39
|
|
@ -23,14 +23,10 @@ class ColorTheme {
|
|||
Color colorDarkGray;
|
||||
}
|
||||
|
||||
// Color themes
|
||||
|
||||
Map<String, ColorTheme> colorThemesMap = {
|
||||
'default': ColorTheme(
|
||||
colorPrimary: convertHexStringToColor('#1266F1'),
|
||||
// blue
|
||||
colorSecondary: convertHexStringToColor('#B23CFD'),
|
||||
// purple
|
||||
colorInfo: convertHexStringToColor('#39C0ED'),
|
||||
colorSuccess: convertHexStringToColor('#00B74A'),
|
||||
colorWarning: convertHexStringToColor('#FFA900'),
|
||||
|
|
|
|||
|
|
@ -103,8 +103,9 @@ abstract class PrefState implements Built<PrefState, PrefStateBuilder> {
|
|||
!isMenuVisible;
|
||||
|
||||
// ignore: unused_element
|
||||
static void _initializeBuilder(PrefStateBuilder builder) =>
|
||||
builder..useSidebarEditor.replace(BuiltMap<EntityType, bool>());
|
||||
static void _initializeBuilder(PrefStateBuilder builder) => builder
|
||||
..useSidebarEditor.replace(BuiltMap<EntityType, bool>())
|
||||
..colorTheme = 'default';
|
||||
|
||||
static Serializer<PrefState> get serializer => _$prefStateSerializer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue