changed share thingies

This commit is contained in:
Kima 2024-02-08 22:19:38 +01:00
parent cccda1aadb
commit a7eda9faf9

View File

@ -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;