fix: Chip 颜色

This commit is contained in:
HuanCheng65 2023-07-21 22:24:29 +08:00
parent f299de891c
commit 8add060de8
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
2 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ private fun getThemeColorForTheme(theme: String): ExtendedColors {
),
textColor.copy(alpha = ContentAlpha.high),
textColor.copy(alpha = ContentAlpha.medium),
textColor.copy(alpha = ContentAlpha.disabled),
Color(App.ThemeDelegate.getColorByAttr(App.INSTANCE, R.attr.colorOnAccent, nowTheme)),
Color(App.ThemeDelegate.getColorByAttr(App.INSTANCE, R.attr.color_text_disabled, nowTheme)),
Color(App.ThemeDelegate.getColorByAttr(App.INSTANCE, R.attr.colorBackground, nowTheme)),
Color(App.ThemeDelegate.getColorByAttr(App.INSTANCE, R.attr.colorChip, nowTheme)),

View File

@ -18,7 +18,7 @@ val ExtendedColors.loadMoreIndicator: Color
}
val ExtendedColors.invertChipBackground: Color
get() = if (ThemeUtil.isNightMode(theme)) accent else onAccent
get() = if (ThemeUtil.isNightMode(theme)) primary.copy(alpha = 0.3f) else primary
val ExtendedColors.invertChipContent: Color
get() = if (ThemeUtil.isNightMode(theme)) accent.copy(alpha = 0.3f) else accent
get() = if (ThemeUtil.isNightMode(theme)) primary else textOnPrimary