forked from firka/student-legacy
added things to db and theme share
This commit is contained in:
parent
600bf7d763
commit
46e6120af3
@ -15,7 +15,8 @@ const settingsDB = DatabaseStruct("settings", {
|
|||||||
"accent_color": int, "news": int, "seen_news": String,
|
"accent_color": int, "news": int, "seen_news": String,
|
||||||
"developer_mode": int,
|
"developer_mode": int,
|
||||||
"update_channel": int, "config": String, "custom_accent_color": int,
|
"update_channel": int, "config": String, "custom_accent_color": int,
|
||||||
"custom_background_color": int, "custom_highlight_color": int, // general
|
"custom_background_color": int, "custom_highlight_color": int,
|
||||||
|
"custom_icon_color": int, "shadow_effect": int, // general
|
||||||
"grade_color1": int, "grade_color2": int, "grade_color3": int,
|
"grade_color1": int, "grade_color2": int, "grade_color3": int,
|
||||||
"grade_color4": int, "grade_color5": int, // grade colors
|
"grade_color4": int, "grade_color5": int, // grade colors
|
||||||
"vibration_strength": int, "ab_weeks": int, "swap_ab_weeks": int,
|
"vibration_strength": int, "ab_weeks": int, "swap_ab_weeks": int,
|
||||||
|
@ -8,6 +8,8 @@ class SharedTheme {
|
|||||||
Color backgroundColor;
|
Color backgroundColor;
|
||||||
Color panelsColor;
|
Color panelsColor;
|
||||||
Color accentColor;
|
Color accentColor;
|
||||||
|
Color iconColor;
|
||||||
|
bool shadowEffect;
|
||||||
SharedGradeColors gradeColors;
|
SharedGradeColors gradeColors;
|
||||||
|
|
||||||
SharedTheme({
|
SharedTheme({
|
||||||
@ -18,6 +20,8 @@ class SharedTheme {
|
|||||||
required this.backgroundColor,
|
required this.backgroundColor,
|
||||||
required this.panelsColor,
|
required this.panelsColor,
|
||||||
required this.accentColor,
|
required this.accentColor,
|
||||||
|
required this.iconColor,
|
||||||
|
required this.shadowEffect,
|
||||||
required this.gradeColors,
|
required this.gradeColors,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -30,6 +34,8 @@ class SharedTheme {
|
|||||||
backgroundColor: Color(json['background_color']),
|
backgroundColor: Color(json['background_color']),
|
||||||
panelsColor: Color(json['panels_color']),
|
panelsColor: Color(json['panels_color']),
|
||||||
accentColor: Color(json['accent_color']),
|
accentColor: Color(json['accent_color']),
|
||||||
|
iconColor: Color(json['icon_color']),
|
||||||
|
shadowEffect: json['shadow_effect'] ?? true,
|
||||||
gradeColors: gradeColors,
|
gradeColors: gradeColors,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user