forked from firka/student-legacy
changed share thingies
This commit is contained in:
parent
cccda1aadb
commit
a7eda9faf9
@ -236,9 +236,19 @@ class FilcAPI {
|
|||||||
theme.json['accent_color'] = theme.accentColor.value.toString();
|
theme.json['accent_color'] = theme.accentColor.value.toString();
|
||||||
theme.json['icon_color'] = theme.iconColor.value.toString();
|
theme.json['icon_color'] = theme.iconColor.value.toString();
|
||||||
theme.json['shadow_effect'] = theme.shadowEffect.toString();
|
theme.json['shadow_effect'] = theme.shadowEffect.toString();
|
||||||
theme.json['theme_mode'] = theme.themeMode == ThemeMode.dark
|
|
||||||
? 'dark'
|
// set theme mode or remove if unneccessary
|
||||||
: (theme.themeMode == ThemeMode.light ? 'light' : null.toString());
|
switch (theme.themeMode) {
|
||||||
|
case ThemeMode.dark:
|
||||||
|
theme.json['theme_mode'] = 'dark';
|
||||||
|
break;
|
||||||
|
case ThemeMode.light:
|
||||||
|
theme.json['theme_mode'] = 'light';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
theme.json.remove('theme_mode');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// set linked grade colors
|
// set linked grade colors
|
||||||
theme.json['grade_colors_id'] = theme.gradeColors.id;
|
theme.json['grade_colors_id'] = theme.gradeColors.id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user