fix: Undo removing of default values in constructors

This commit is contained in:
PartyDonut 2025-10-19 13:59:33 +02:00
parent 666f831053
commit 5530c6fd0c
6 changed files with 17 additions and 10 deletions

View file

@ -65,7 +65,7 @@ abstract class ClientSettingsModel with _$ClientSettingsModel {
ColorThemes? themeColor,
@Default(true) bool deriveColorsFromItem,
@Default(false) bool amoledBlack,
required bool blurPlaceHolders,
@Default(true) bool blurPlaceHolders,
@Default(false) bool blurUpcomingEpisodes,
@LocaleConvert() Locale? selectedLocale,
@Default(true) bool enableMediaKeys,
@ -76,7 +76,7 @@ abstract class ClientSettingsModel with _$ClientSettingsModel {
@Default(false) bool showAllCollectionTypes,
@Default(2) int maxConcurrentDownloads,
@Default(DynamicSchemeVariant.rainbow) DynamicSchemeVariant schemeVariant,
required BackgroundType backgroundImage,
@Default(BackgroundType.blurred) BackgroundType backgroundImage,
@Default(true) bool checkForUpdates,
@Default(false) bool usePosterForLibrary,
@Default(false) bool useSystemIME,
@ -89,6 +89,7 @@ abstract class ClientSettingsModel with _$ClientSettingsModel {
return ClientSettingsModel(
blurPlaceHolders: leanBackMode ? false : true,
backgroundImage: leanBackMode ? BackgroundType.disabled : BackgroundType.blurred,
themeMode: leanBackMode ? ThemeMode.dark : ThemeMode.system,
);
}