Skip to content

Commit

Permalink
Fix theme not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanSarwar45 committed Dec 13, 2023
1 parent c3e7ba2 commit e8b3e15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions lib/settings/data/settings_schema.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ SettingGroup appSettings = SettingGroup(
),
onChange: (context, colorScheme) {
App.setColorScheme(context, colorScheme);
appSettings.save();
},
searchTags: ["theme", "style", "visual", "dark mode"],
),
Expand Down Expand Up @@ -189,6 +190,7 @@ SettingGroup appSettings = SettingGroup(
),
onChange: (context, styleTheme) {
App.setStyleTheme(context, styleTheme);
appSettings.save();
},
searchTags: [
"scheme",
Expand Down
14 changes: 7 additions & 7 deletions lib/theme/data/default_color_schemes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ List<ColorSchemeData> defaultColorSchemes = [
onBackground: const Color.fromARGB(255, 46, 53, 68),
card: Colors.white,
onCard: const Color.fromARGB(255, 46, 53, 68),
accent: Colors.cyan,
onAccent: Colors.white,
accent: const Color.fromARGB(255, 34, 102, 238),
onAccent: const Color.fromARGB(255, 216, 239, 255),
shadow: const Color.fromARGB(255, 0, 0, 0),
outline: const Color.fromARGB(255, 235, 235, 235),
error: const Color(0xFFFE4A49),
Expand All @@ -37,8 +37,8 @@ List<ColorSchemeData> defaultColorSchemes = [
onBackground: const Color.fromARGB(255, 245, 245, 245),
card: const Color.fromARGB(255, 41, 41, 41),
onCard: const Color.fromARGB(255, 233, 233, 233),
accent: Colors.cyan,
onAccent: Colors.white,
accent: const Color.fromARGB(255, 44, 112, 248),
onAccent: const Color.fromARGB(255, 226, 249, 255),
shadow: const Color.fromARGB(255, 0, 0, 0),
outline: const Color.fromARGB(255, 61, 61, 61),
error: const Color(0xFFFE4A49),
Expand All @@ -51,8 +51,8 @@ List<ColorSchemeData> defaultColorSchemes = [
onBackground: const Color.fromARGB(255, 245, 245, 245),
card: const Color.fromARGB(255, 34, 34, 34),
onCard: const Color.fromARGB(255, 233, 233, 233),
accent: Colors.cyan,
onAccent: Colors.white,
accent: const Color.fromARGB(255, 48, 118, 252),
onAccent: const Color.fromARGB(255, 230, 252, 255),
shadow: const Color.fromARGB(255, 0, 0, 0),
outline: const Color.fromARGB(255, 54, 54, 54),
error: const Color(0xFFFE4A49),
Expand Down Expand Up @@ -175,6 +175,6 @@ List<ColorSchemeData> defaultColorSchemes = [
outline: const Color.fromARGB(255, 38, 38, 38),
error: const Color.fromARGB(255, 224, 128, 117),
onError: Colors.white,
isDefault: false,
isDefault: true,
)
];

0 comments on commit e8b3e15

Please sign in to comment.