mirror of
https://github.com/ProtonMail/android-mail.git
synced 2026-05-15 09:50:40 +00:00
Update toolbar background color
ET-6040
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ fun FloatingBottomToolbar(
|
|||||||
val shownData = lastShownState.value ?: return
|
val shownData = lastShownState.value ?: return
|
||||||
|
|
||||||
val surfaceColor by animateColorAsState(
|
val surfaceColor by animateColorAsState(
|
||||||
targetValue = if (isVisible) ProtonTheme.colors.backgroundNorm else Color.Transparent,
|
targetValue = if (isVisible) ProtonTheme.colors.interactionFabNorm else Color.Transparent,
|
||||||
animationSpec = tween(ANIMATION_DURATION),
|
animationSpec = tween(ANIMATION_DURATION),
|
||||||
label = "surfaceColor"
|
label = "surfaceColor"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-9
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
package ch.protonmail.android.mailmailbox.presentation.mailbox
|
package ch.protonmail.android.mailmailbox.presentation.mailbox
|
||||||
|
|
||||||
import androidx.compose.animation.animateColor
|
|
||||||
import androidx.compose.animation.core.Spring
|
import androidx.compose.animation.core.Spring
|
||||||
import androidx.compose.animation.core.animateDp
|
import androidx.compose.animation.core.animateDp
|
||||||
import androidx.compose.animation.core.animateDpAsState
|
import androidx.compose.animation.core.animateDpAsState
|
||||||
@@ -112,13 +111,6 @@ internal fun MailboxFabToolbarMorph(
|
|||||||
label = "horizontalBias"
|
label = "horizontalBias"
|
||||||
) { inSelection -> if (inSelection) 0f else 1f }
|
) { inSelection -> if (inSelection) 0f else 1f }
|
||||||
|
|
||||||
val surfaceColor by transition.animateColor(
|
|
||||||
transitionSpec = { spring(stiffness = Spring.StiffnessMediumLow) },
|
|
||||||
label = "surfaceColor"
|
|
||||||
) { inSelection ->
|
|
||||||
if (inSelection) ProtonTheme.colors.backgroundNorm else ProtonTheme.colors.interactionFabNorm
|
|
||||||
}
|
|
||||||
|
|
||||||
Box(
|
Box(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.padding(bottom = snackbarOffset)
|
.padding(bottom = snackbarOffset)
|
||||||
@@ -182,7 +174,7 @@ internal fun MailboxFabToolbarMorph(
|
|||||||
.height(FabSize),
|
.height(FabSize),
|
||||||
shape = RoundedCornerShape(percent = 50),
|
shape = RoundedCornerShape(percent = 50),
|
||||||
shadowElevation = ProtonDimens.ShadowElevation.Mini,
|
shadowElevation = ProtonDimens.ShadowElevation.Mini,
|
||||||
color = surfaceColor
|
color = ProtonTheme.colors.interactionFabNorm
|
||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
contentAlignment = Alignment.Center,
|
contentAlignment = Alignment.Center,
|
||||||
|
|||||||
Reference in New Issue
Block a user