diff --git a/filcnaplo/lib/database/init.dart b/filcnaplo/lib/database/init.dart index 274dbce..47ce105 100644 --- a/filcnaplo/lib/database/init.dart +++ b/filcnaplo/lib/database/init.dart @@ -15,7 +15,8 @@ const settingsDB = DatabaseStruct("settings", { "accent_color": int, "news": int, "seen_news": String, "developer_mode": 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_color4": int, "grade_color5": int, // grade colors "vibration_strength": int, "ab_weeks": int, "swap_ab_weeks": int, diff --git a/filcnaplo/lib/models/shared_theme.dart b/filcnaplo/lib/models/shared_theme.dart index e983729..6ab6e24 100644 --- a/filcnaplo/lib/models/shared_theme.dart +++ b/filcnaplo/lib/models/shared_theme.dart @@ -8,6 +8,8 @@ class SharedTheme { Color backgroundColor; Color panelsColor; Color accentColor; + Color iconColor; + bool shadowEffect; SharedGradeColors gradeColors; SharedTheme({ @@ -18,6 +20,8 @@ class SharedTheme { required this.backgroundColor, required this.panelsColor, required this.accentColor, + required this.iconColor, + required this.shadowEffect, required this.gradeColors, }); @@ -30,6 +34,8 @@ class SharedTheme { backgroundColor: Color(json['background_color']), panelsColor: Color(json['panels_color']), accentColor: Color(json['accent_color']), + iconColor: Color(json['icon_color']), + shadowEffect: json['shadow_effect'] ?? true, gradeColors: gradeColors, ); }