From f96b954db30bf9fca8e7a3b2d6537040b8de747e Mon Sep 17 00:00:00 2001 From: Dr-Blank <64108942+Dr-Blank@users.noreply.github.com> Date: Sat, 5 Oct 2024 08:54:49 -0400 Subject: [PATCH] refactor: update default value for useMaterialThemeFromSystem to false in theme settings --- lib/settings/models/app_settings.dart | 2 +- lib/settings/models/app_settings.freezed.dart | 2 +- lib/settings/models/app_settings.g.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/settings/models/app_settings.dart b/lib/settings/models/app_settings.dart index 1d1a53e..321edc1 100644 --- a/lib/settings/models/app_settings.dart +++ b/lib/settings/models/app_settings.dart @@ -30,7 +30,7 @@ class ThemeSettings with _$ThemeSettings { const factory ThemeSettings({ @Default(ThemeMode.system) ThemeMode themeMode, @Default(false) bool highContrast, - @Default(true) bool useMaterialThemeFromSystem, + @Default(false) bool useMaterialThemeFromSystem, @Default('#FF311B92') String customThemeColor, @Default(true) bool useMaterialThemeOfPlayingItem, @Default(true) bool useMaterialThemeOnItemPage, diff --git a/lib/settings/models/app_settings.freezed.dart b/lib/settings/models/app_settings.freezed.dart index 7ea9500..4a41a42 100644 --- a/lib/settings/models/app_settings.freezed.dart +++ b/lib/settings/models/app_settings.freezed.dart @@ -533,7 +533,7 @@ class _$ThemeSettingsImpl implements _ThemeSettings { const _$ThemeSettingsImpl( {this.themeMode = ThemeMode.system, this.highContrast = false, - this.useMaterialThemeFromSystem = true, + this.useMaterialThemeFromSystem = false, this.customThemeColor = '#FF311B92', this.useMaterialThemeOfPlayingItem = true, this.useMaterialThemeOnItemPage = true}); diff --git a/lib/settings/models/app_settings.g.dart b/lib/settings/models/app_settings.g.dart index 8ab998e..26b28a4 100644 --- a/lib/settings/models/app_settings.g.dart +++ b/lib/settings/models/app_settings.g.dart @@ -50,7 +50,7 @@ _$ThemeSettingsImpl _$$ThemeSettingsImplFromJson(Map json) => ThemeMode.system, highContrast: json['highContrast'] as bool? ?? false, useMaterialThemeFromSystem: - json['useMaterialThemeFromSystem'] as bool? ?? true, + json['useMaterialThemeFromSystem'] as bool? ?? false, customThemeColor: json['customThemeColor'] as String? ?? '#FF311B92', useMaterialThemeOfPlayingItem: json['useMaterialThemeOfPlayingItem'] as bool? ?? true,