1
0
Fork 0
mirror of https://github.com/bitwarden/android.git synced 2025-02-13 18:39:56 +03:00

Update fab design ()

This commit is contained in:
David Perez 2024-10-25 16:29:16 -05:00 committed by GitHub
parent 164cc09f19
commit b64175ff6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions
app/src/main/java/com/x8bit/bitwarden/ui/platform

View file

@ -26,6 +26,7 @@ fun BitwardenFloatingActionButton(
containerColor = BitwardenTheme.colorScheme.filledButton.background,
contentColor = BitwardenTheme.colorScheme.filledButton.foreground,
onClick = onClick,
shape = BitwardenTheme.shapes.fab,
modifier = modifier,
) {
Icon(

View file

@ -9,14 +9,15 @@ import androidx.compose.runtime.Immutable
@Immutable
data class BitwardenShapes(
val actionCard: CornerBasedShape,
val bottomSheet: CornerBasedShape,
val coachmark: CornerBasedShape,
val content: CornerBasedShape,
val contentBottom: CornerBasedShape,
val contentTop: CornerBasedShape,
val dialog: CornerBasedShape,
val fab: CornerBasedShape,
val infoCallout: CornerBasedShape,
val menu: CornerBasedShape,
val segmentedControl: CornerBasedShape,
val snackbar: CornerBasedShape,
val bottomSheet: CornerBasedShape,
)

View file

@ -9,14 +9,15 @@ import androidx.compose.ui.unit.dp
*/
val bitwardenShapes: BitwardenShapes = BitwardenShapes(
actionCard = RoundedCornerShape(size = 12.dp),
bottomSheet = RoundedCornerShape(topStart = 24.dp, topEnd = 24.dp),
coachmark = RoundedCornerShape(size = 8.dp),
content = RoundedCornerShape(size = 8.dp),
contentBottom = RoundedCornerShape(bottomStart = 8.dp, bottomEnd = 8.dp),
contentTop = RoundedCornerShape(topStart = 8.dp, topEnd = 8.dp),
dialog = RoundedCornerShape(size = 28.dp),
fab = CircleShape,
infoCallout = RoundedCornerShape(size = 8.dp),
menu = RoundedCornerShape(size = 4.dp),
segmentedControl = CircleShape,
snackbar = RoundedCornerShape(size = 8.dp),
bottomSheet = RoundedCornerShape(topStart = 24.dp, topEnd = 24.dp),
)