From d96f5953d505f0d34413eec624dbc07906973ce6 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 1 Nov 2024 17:27:19 -0400 Subject: [PATCH] Moving animation size to a constant. --- .../java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt | 4 +++- .../main/java/com/vitorpamplona/amethyst/ui/theme/Shape.kt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt index 680fcd8b5..4bc9eb571 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt @@ -103,6 +103,7 @@ import androidx.lifecycle.map import com.vitorpamplona.amethyst.R import com.vitorpamplona.amethyst.model.FeatureSetType import com.vitorpamplona.amethyst.model.Note +import com.vitorpamplona.amethyst.model.zap import com.vitorpamplona.amethyst.service.ZapPaymentHandler import com.vitorpamplona.amethyst.ui.actions.CrossfadeIfEnabled import com.vitorpamplona.amethyst.ui.components.ClickableBox @@ -129,6 +130,7 @@ import com.vitorpamplona.amethyst.ui.theme.ReactionRowHeightWithPadding import com.vitorpamplona.amethyst.ui.theme.ReactionRowZapraiser import com.vitorpamplona.amethyst.ui.theme.ReactionRowZapraiserWithPadding import com.vitorpamplona.amethyst.ui.theme.RowColSpacing +import com.vitorpamplona.amethyst.ui.theme.Size14dp import com.vitorpamplona.amethyst.ui.theme.Size18Modifier import com.vitorpamplona.amethyst.ui.theme.Size18dp import com.vitorpamplona.amethyst.ui.theme.Size19Modifier @@ -992,7 +994,7 @@ fun ZapReaction( accountViewModel: AccountViewModel, iconSize: Dp = Size20dp, iconSizeModifier: Modifier = Size20Modifier, - animationSize: Dp = 14.dp, + animationSize: Dp = Size14dp, nav: INav, ) { var wantsToZap by remember { mutableStateOf(false) } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Shape.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Shape.kt index cc5693357..4ee2a971d 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Shape.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Shape.kt @@ -87,6 +87,7 @@ val Size5dp = 5.dp val Size10dp = 10.dp val Size12dp = 12.dp val Size13dp = 13.dp +val Size14dp = 14.dp val Size15dp = 15.dp val Size16dp = 16.dp val Size17dp = 17.dp