From a22551308880a3803696fa6634bf9e1fd9b9e073 Mon Sep 17 00:00:00 2001 From: Ash Date: Sat, 7 May 2022 14:31:53 +0800 Subject: [PATCH] Fix dynamic system tonal palettes --- .../main/java/me/ash/reader/ui/theme/palette/TonalPalettes.kt | 2 +- app/src/main/res/values-zh-rCN/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/me/ash/reader/ui/theme/palette/TonalPalettes.kt b/app/src/main/java/me/ash/reader/ui/theme/palette/TonalPalettes.kt index 7b44a8a..23fe079 100644 --- a/app/src/main/java/me/ash/reader/ui/theme/palette/TonalPalettes.kt +++ b/app/src/main/java/me/ash/reader/ui/theme/palette/TonalPalettes.kt @@ -216,7 +216,7 @@ data class TonalPalettes( @Composable @Stable fun Context.getSystemTonalPalettes(): TonalPalettes { - val tonalPalettes = LocalTonalPalettes.current + val tonalPalettes = TonalPalettes(238.36, 15.0) tonalTokens.forEach { tonalPalettes.primary[it] = tonalPalettes.primarySystem(this, it) } diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 9602350..0994f75 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -110,7 +110,7 @@ 跟随系统设置 开启 关闭 - Amoled 深色主题 + AMOLED 深色主题 其他 色调海拔 字体 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ec332f4..afac7df 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -112,7 +112,7 @@ On Off Other - Amoled Dark Theme + AMOLED Dark Theme Tonal Elevation Fonts Basic Fonts