mirror of
https://github.com/bitwarden/android.git
synced 2025-02-13 18:39:56 +03:00
Update fab design (#4168)
This commit is contained in:
parent
164cc09f19
commit
b64175ff6e
3 changed files with 5 additions and 2 deletions
app/src/main/java/com/x8bit/bitwarden/ui/platform
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue