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