refactor: update default value for useMaterialThemeFromSystem to false in theme settings

This commit is contained in:
Dr-Blank 2024-10-05 08:54:49 -04:00
parent 37f775a79a
commit f96b954db3
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

@ -50,7 +50,7 @@ _$ThemeSettingsImpl _$$ThemeSettingsImplFromJson(Map<String, dynamic> 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,