fix: Chip 颜色
This commit is contained in:
parent
f299de891c
commit
8add060de8
|
|
@ -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)),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue