Skip to content

Commit

Permalink
fix text contrast issue on page preview (gdg-berlin-android#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
msieluk-CKPL committed Jul 5, 2024
1 parent cc21044 commit dbb98c9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import de.berlindroid.zeapp.R
import de.berlindroid.zeapp.ZeDimen
import de.berlindroid.zeapp.zeui.BinaryBitmapPageProvider
import de.berlindroid.zeapp.zeui.ToolButton
import de.berlindroid.zeapp.zeui.zetheme.ZeBlack
import de.berlindroid.zeapp.zeui.zetheme.ZeWhite

@Composable
Expand All @@ -54,7 +55,7 @@ internal fun PagePreview(
.padding(ZeDimen.Quarter),
colors = CardDefaults.cardColors(
containerColor = MaterialTheme.colorScheme.surface,
contentColor = ZeWhite,
contentColor = ZeBlack,
),
border = BorderStroke(1.dp, ZeWhite),
) {
Expand All @@ -77,7 +78,9 @@ internal fun PagePreview(
text = name,
modifier = Modifier
.align(Alignment.CenterVertically)
.padding(start = ZeDimen.One),
.padding(start = ZeDimen.One)
,

)
if (resetThisPage != null || customizeThisPage != null || sendToDevice != null) {
LazyRow(
Expand Down

0 comments on commit dbb98c9

Please sign in to comment.