Skip to content

Commit

Permalink
Rework infoBar to be more visible (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisen authored Jul 4, 2024
2 parents cce9aca + 14d25ec commit 9158ade
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ import de.berlindroid.zeapp.zeui.zeabout.ZeAbout
import de.berlindroid.zeapp.zeui.zeopensource.ZeOpenSource
import de.berlindroid.zeapp.zeui.zetheme.ZeBadgeAppTheme
import de.berlindroid.zeapp.zeui.zetheme.ZeBlack
import de.berlindroid.zeapp.zeui.zetheme.ZeCarmine
import de.berlindroid.zeapp.zeui.zetheme.ZeWhite
import de.berlindroid.zeapp.zevm.ZeBadgeViewModel
import de.berlindroid.zeapp.zevm.copy
Expand Down Expand Up @@ -660,11 +661,11 @@ private fun InfoBar(
ZeCard(
modifier = ZeModifier
.padding(horizontal = ZeDimen.One, vertical = ZeDimen.One)
.background(ZeWhite, ZeRoundedCornerShape(ZeDimen.One))
.background(ZeCarmine, ZeRoundedCornerShape(ZeDimen.One))
.zIndex(10.0f),
colors = CardDefaults.cardColors(
containerColor = ZeWhite,
contentColor = ZeBlack,
containerColor = ZeCarmine,
contentColor = ZeWhite,
),
) {
ZeRow(
Expand All @@ -675,7 +676,7 @@ private fun InfoBar(
modifier = ZeModifier.weight(1.0f),
fontSize = 20.sp,
fontFamily = FontFamily.Monospace,
color = ZeBlack,
color = ZeWhite,
text = message,
)

Expand Down Expand Up @@ -883,6 +884,7 @@ private fun SelectedEditor(
}

@Composable
@Preview
private fun TemplateChooserDialog(
vm: ZeBadgeViewModel,
templateChooser: ZeTemplateChooser?,
Expand Down Expand Up @@ -923,6 +925,7 @@ private fun TemplateChooserDialog(
}

@Composable
@Preview
@Suppress("LongParameterList")
private fun PagePreview(
@PreviewParameter(BinaryBitmapPageProvider::class, 1)
Expand Down

0 comments on commit 9158ade

Please sign in to comment.