From 10832e10c82550d0efad6e491f8fb5583a0d3abc Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 7 Aug 2025 09:50:20 -0400 Subject: [PATCH] Fixes the background color behind the show more button on light mode --- .../java/com/vitorpamplona/amethyst/ui/note/NoteCompose.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NoteCompose.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NoteCompose.kt index 8c8576e6d..78a86633a 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NoteCompose.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NoteCompose.kt @@ -399,17 +399,17 @@ fun calculateBackgroundColor( newItemColor.compositeOver(defaultBackgroundColor) } } else { - parentBackgroundColor?.value ?: Color.Transparent + parentBackgroundColor?.value ?: defaultBackgroundColor.copy(alpha = 0f) } } else { - parentBackgroundColor?.value ?: Color.Transparent + parentBackgroundColor?.value ?: defaultBackgroundColor.copy(alpha = 0f) }, ) } LaunchedEffect(createdAt) { delay(5000) - bgColor.value = parentBackgroundColor?.value ?: Color.Transparent + bgColor.value = parentBackgroundColor?.value ?: defaultBackgroundColor.copy(alpha = 0f) } return bgColor