Skip to content

Commit

Permalink
dhonti/ANDROID-15405-postercard: Update sample attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhonti-axpe committed Nov 22, 2024
1 parent c74285e commit 78a3947
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fun PosterCards() {
var tag: String by remember { mutableStateOf("Headline") }
var tagType: Int by remember { mutableIntStateOf(TYPE_PROMO) }

var aspectRatioType: PosterCardAspectRatio by remember { mutableStateOf(PosterCardAspectRatio.AR_AUTO) }
var aspectRatioType: PosterCardAspectRatio by remember { mutableStateOf(PosterCardAspectRatio.AR_16_9) }

var inverseDisplay: Boolean by remember { mutableStateOf(true) }
var backgroundType: BackgroundType by remember { mutableStateOf(BackgroundType.SOLID_COLOR) }
Expand Down Expand Up @@ -187,7 +187,7 @@ private val topActionsTypeLabelsMap = mapOf(
private enum class BackgroundType(val backgroundValue: PosterCardBackgroundType) {
IMAGE(PosterCardBackgroundType.Image(imageResource = R.drawable.sample_background)),
SOLID_COLOR(PosterCardBackgroundType.Color(brush = SolidColor(Color.Red))),
GRADIENT_COLOR(PosterCardBackgroundType.Color(brush = Brush.verticalGradient(colors = listOf(Color.Blue, Color.LightGray)))),
GRADIENT_COLOR(PosterCardBackgroundType.Color(brush = Brush.verticalGradient(colors = listOf(Color.Blue, Color.Cyan)))),
}

private enum class TopActionsType(val info: PosterCardTopActionInfo? = null) {
Expand All @@ -197,7 +197,7 @@ private enum class TopActionsType(val info: PosterCardTopActionInfo? = null) {
firstTopAction = TopActionData(
iconRes = R.drawable.ic_close_regular,
backgroundColor = Color.White,
iconTint = Color.Gray,
iconTint = Color.DarkGray,
)
)
),
Expand All @@ -211,7 +211,7 @@ private enum class TopActionsType(val info: PosterCardTopActionInfo? = null) {
secondTopAction = TopActionData(
iconRes = R.drawable.ic_close_regular,
backgroundColor = Color.White,
iconTint = Color.Gray
iconTint = Color.DarkGray
),
)
)
Expand Down

0 comments on commit 78a3947

Please sign in to comment.