Fix dynamic system tonal palettes

This commit is contained in:
Ash 2022-05-07 14:31:53 +08:00
parent b1f6b60e72
commit a225513088
3 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ data class TonalPalettes(
@Composable @Composable
@Stable @Stable
fun Context.getSystemTonalPalettes(): TonalPalettes { fun Context.getSystemTonalPalettes(): TonalPalettes {
val tonalPalettes = LocalTonalPalettes.current val tonalPalettes = TonalPalettes(238.36, 15.0)
tonalTokens.forEach { tonalTokens.forEach {
tonalPalettes.primary[it] = tonalPalettes.primarySystem(this, it) tonalPalettes.primary[it] = tonalPalettes.primarySystem(this, it)
} }

View File

@ -110,7 +110,7 @@
<string name="use_device_theme">跟随系统设置</string> <string name="use_device_theme">跟随系统设置</string>
<string name="on">开启</string> <string name="on">开启</string>
<string name="off">关闭</string> <string name="off">关闭</string>
<string name="amoled_dark_theme">Amoled 深色主题</string> <string name="amoled_dark_theme">AMOLED 深色主题</string>
<string name="other">其他</string> <string name="other">其他</string>
<string name="tonal_elevation">色调海拔</string> <string name="tonal_elevation">色调海拔</string>
<string name="fonts">字体</string> <string name="fonts">字体</string>

View File

@ -112,7 +112,7 @@
<string name="on">On</string> <string name="on">On</string>
<string name="off">Off</string> <string name="off">Off</string>
<string name="other">Other</string> <string name="other">Other</string>
<string name="amoled_dark_theme">Amoled Dark Theme</string> <string name="amoled_dark_theme">AMOLED Dark Theme</string>
<string name="tonal_elevation">Tonal Elevation</string> <string name="tonal_elevation">Tonal Elevation</string>
<string name="fonts">Fonts</string> <string name="fonts">Fonts</string>
<string name="basic_fonts">Basic Fonts</string> <string name="basic_fonts">Basic Fonts</string>