From df62df99e0e46c798648ef05e67404e9f8a370fe Mon Sep 17 00:00:00 2001 From: Marcin Simonides Date: Thu, 13 Apr 2023 10:33:09 +0200 Subject: [PATCH] fix(presentation-compose): Fix accent colors not updating with theme change. --- .../src/main/kotlin/me/proton/core/compose/theme/Colors.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/presentation-compose/src/main/kotlin/me/proton/core/compose/theme/Colors.kt b/presentation-compose/src/main/kotlin/me/proton/core/compose/theme/Colors.kt index f20e8b2d3..7bfe07143 100644 --- a/presentation-compose/src/main/kotlin/me/proton/core/compose/theme/Colors.kt +++ b/presentation-compose/src/main/kotlin/me/proton/core/compose/theme/Colors.kt @@ -457,6 +457,8 @@ class ProtonColors( shadowRaised = Color.Black.copy(alpha = 0.1f), shadowLifted = Color.Black.copy(alpha = 0.1f), blenderNorm = ProtonPalette.Woodsmoke.copy(alpha = 0.48f), + textAccent = brandNorm, + iconAccent = brandNorm, ) private fun baseDark( @@ -662,12 +664,14 @@ internal fun ProtonColors.updateColorsFrom(other: ProtonColors) { shade0 = other.shade0 textNorm = other.textNorm + textAccent = other.textAccent textWeak = other.textWeak textHint = other.textHint textDisabled = other.textDisabled textInverted = other.textInverted iconNorm = other.iconNorm + iconAccent = other.iconAccent iconWeak = other.iconWeak iconHint = other.iconHint iconDisabled = other.iconDisabled