Add prefer logos instead of text titles setting (#1151)
## Description Adds an advanced settings to prefer logos for titles instead of text. It is enabled by default. ### Related issues Closes #383 ### Testing Emulator & onn ## Screenshots <details><summary>Click to show</summary> <p> ### Home page  ### Series overview  ### Movie Page  ### Square-ish logo  </p> </details> ## AI or LLM usage None
This commit is contained in:
parent
253b203c02
commit
2485d2c644
27 changed files with 290 additions and 122 deletions
|
|
@ -501,6 +501,18 @@ sealed interface AppPreference<Pref, T> {
|
|||
valueToIndex = { if (it != AppThemeColors.UNRECOGNIZED) it.number else 0 },
|
||||
)
|
||||
|
||||
val ShowLogos =
|
||||
AppSwitchPreference<AppPreferences>(
|
||||
title = R.string.prefer_logos,
|
||||
defaultValue = true,
|
||||
getter = { it.interfacePreferences.showLogos },
|
||||
setter = { prefs, value ->
|
||||
prefs.updateInterfacePreferences { showLogos = value }
|
||||
},
|
||||
summaryOn = R.string.enabled,
|
||||
summaryOff = R.string.disabled,
|
||||
)
|
||||
|
||||
val InstalledVersion =
|
||||
AppClickablePreference<AppPreferences>(
|
||||
title = R.string.installed_version,
|
||||
|
|
@ -1122,6 +1134,7 @@ val advancedPreferences =
|
|||
preferences =
|
||||
listOf(
|
||||
AppPreference.ShowClock,
|
||||
AppPreference.ShowLogos,
|
||||
AppPreference.ManageMedia,
|
||||
AppPreference.CombineContinueNext,
|
||||
// Temporarily disabled, see https://github.com/damontecres/Wholphin/pull/127#issuecomment-3478058418
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ class AppPreferencesSerializer
|
|||
AppPreference.NavDrawerSwitchOnFocus.defaultValue
|
||||
showClock = AppPreference.ShowClock.defaultValue
|
||||
backdropStyle = AppPreference.BackdropStylePref.defaultValue
|
||||
showLogos = AppPreference.ShowLogos.defaultValue
|
||||
|
||||
subtitlesPreferences =
|
||||
SubtitlePreferences
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue