Fixing UI issues found

feature/compose-cleanup
ThomasSession 9 months ago
parent a84ba25a79
commit 78110a48c6

@ -273,11 +273,11 @@ fun CellWithPaddingAndMargin(
) {
Box(
modifier = Modifier
.padding(horizontal = margin)
.background(color = LocalColors.current.backgroundSecondary,
shape = MaterialTheme.shapes.small)
.wrapContentHeight()
.fillMaxWidth()
.padding(horizontal = margin),
.fillMaxWidth(),
) {
Box(Modifier.padding(padding)) { content() }
}

@ -35,7 +35,7 @@ interface ButtonType {
@Composable
override fun buttonColors() = ButtonDefaults.buttonColors(
contentColor = contentColor,
containerColor = Color.Unspecified,
containerColor = Color.Transparent,
disabledContentColor = LocalColors.current.disabled,
disabledContainerColor = Color.Transparent
)

@ -77,7 +77,6 @@ fun MaybeScanQrCode(
Box(
modifier = Modifier
.fillMaxSize()
.background(LocalColors.current.background)
) {
LocalSoftwareKeyboardController.current?.hide()
@ -106,7 +105,6 @@ fun MaybeScanQrCode(
} else {
Column(
modifier = Modifier
.background(color = LocalColors.current.background)
.fillMaxSize()
.padding(LocalDimensions.current.xlargeSpacing),
horizontalAlignment = Alignment.CenterHorizontally

Loading…
Cancel
Save