(feat) custom typography schemes

This commit is contained in:
MM20
2025-06-18 22:28:13 +02:00
parent 4bf9ee8b0c
commit da8416a58c
31 changed files with 2856 additions and 117 deletions
@@ -18,6 +18,8 @@ data class LauncherSettingsData internal constructor(
val uiShapesId: UUID = UUID(0L, 0L),
@Serializable(with = UUIDSerializer::class)
val uiTransparenciesId: UUID = UUID(0L, 0L),
@Serializable(with = UUIDSerializer::class)
val uiTypographyId: UUID = UUID(0L, 0L),
val uiCompatModeColors: Boolean = false,
val uiFont: Font = Font.Outfit,
@@ -318,6 +318,17 @@ class UiSettings internal constructor(
}
}
val typographyId
get() = launcherDataStore.data.map {
it.uiTypographyId
}.distinctUntilChanged()
fun setTypographyId(typographyId: UUID) {
launcherDataStore.update {
it.copy(uiTypographyId = typographyId)
}
}
val font
get() = launcherDataStore.data.map {
it.uiFont