Fix dynamic system tonal palettes
This commit is contained in:
parent
b1f6b60e72
commit
a225513088
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<string name="use_device_theme">跟随系统设置</string>
|
||||
<string name="on">开启</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="tonal_elevation">色调海拔</string>
|
||||
<string name="fonts">字体</string>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<string name="on">On</string>
|
||||
<string name="off">Off</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="fonts">Fonts</string>
|
||||
<string name="basic_fonts">Basic Fonts</string>
|
||||
|
|
Loading…
Reference in New Issue
Block a user