mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-07-06 17:31:33 +00:00
refactor: update default value for useMaterialThemeFromSystem to false in theme settings
This commit is contained in:
parent
37f775a79a
commit
f96b954db3
3 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue