fix(presentation-compose): Fix accent colors not updating with theme change.

This commit is contained in:
Marcin Simonides
2023-04-13 11:25:19 +02:00
parent 80862aeb93
commit df62df99e0
@@ -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