Skip to content

Commit

Permalink
fix: message background highlight colors [WPB-5940] (#2693)
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Feb 13, 2024
1 parent f3d03c3 commit 71172b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fun MessageItem(
}

val colorAnimation = remember { Animatable(Color.Transparent) }
val highlightColor = colorsScheme().selectedMessageHighlightColor
val highlightColor = colorsScheme().primaryVariant
val transparentColor = colorsScheme().primary.copy(alpha = 0F)
LaunchedEffect(isSelectedMessage) {
if (isSelectedMessage) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ data class WireColorScheme(
val onScrollToBottomButtonColor: Color,
val validE2eiStatusColor: Color,
val mlsVerificationTextColor: Color,
val selectedMessageHighlightColor: Color
) {
fun toColorScheme(): ColorScheme = ColorScheme(
primary = primary,
Expand Down Expand Up @@ -237,7 +236,6 @@ private val LightWireColorScheme = WireColorScheme(
onScrollToBottomButtonColor = Color.White,
validE2eiStatusColor = WireColorPalette.LightGreen550,
mlsVerificationTextColor = WireColorPalette.DarkGreen700,
selectedMessageHighlightColor = WireColorPalette.DarkBlue50
)

// Dark WireColorScheme
Expand Down Expand Up @@ -346,7 +344,6 @@ private val DarkWireColorScheme = WireColorScheme(
onScrollToBottomButtonColor = Color.Black,
validE2eiStatusColor = WireColorPalette.DarkGreen500,
mlsVerificationTextColor = WireColorPalette.DarkGreen700,
selectedMessageHighlightColor = WireColorPalette.DarkBlue50
)

@PackagePrivate
Expand Down

0 comments on commit 71172b7

Please sign in to comment.