diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/Theme.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/Theme.kt index 65076240..2f2f6f8a 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/Theme.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/Theme.kt @@ -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)), diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/ThemeExtensions.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/ThemeExtensions.kt index 29749029..0becb420 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/ThemeExtensions.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/common/theme/compose/ThemeExtensions.kt @@ -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 \ No newline at end of file + get() = if (ThemeUtil.isNightMode(theme)) primary else textOnPrimary \ No newline at end of file