Skip to content

Commit

Permalink
Update fab design (#4168)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-livefront authored Oct 25, 2024
1 parent 164cc09 commit b64175f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)

0 comments on commit b64175f

Please sign in to comment.