(feat) custom typography schemes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user