Bring back clock widget fill height option

Close #1493
This commit is contained in:
MM20
2025-07-13 20:55:29 +02:00
parent 83b96e4fcd
commit 8ae2fc93fc
5 changed files with 117 additions and 74 deletions
@@ -51,7 +51,6 @@ data class LauncherSettingsData internal constructor(
val clockWidgetBatteryPart: Boolean = true,
val clockWidgetMusicPart: Boolean = true,
val clockWidgetDatePart: Boolean = true,
@Deprecated("Use homeScreenWidgets")
val clockWidgetFillHeight: Boolean = true,
val clockWidgetAlignment: ClockWidgetAlignment = ClockWidgetAlignment.Bottom,
@@ -64,7 +64,13 @@ class ClockWidgetSettings internal constructor(
}
val fillHeight
get() = launcherDataStore.data.map { !it.homeScreenWidgets }
get() = launcherDataStore.data.map { it.clockWidgetFillHeight || !it.homeScreenWidgets }
fun setFillHeight(fillHeight: Boolean) {
launcherDataStore.update {
it.copy(clockWidgetFillHeight = fillHeight)
}
}
val dock
get() = launcherDataStore.data.map { it.homeScreenDock }