Skip to content

Commit

Permalink
Fixed Null Pointer in IDE sample on non INTUI themes (#568)
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Noriega <[email protected]>
  • Loading branch information
francisconoriega and Francisco Noriega authored Aug 30, 2024
1 parent ef78240 commit 67aad58
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ private fun RowScope.ColumnOne() {

@Composable
private fun IconsShowcase() {
val iconBackgroundColor = JewelTheme.colorPalette.blueOrNull(4) ?: JBUI.CurrentTheme.Banner.INFO_BACKGROUND.toComposeColor()

Row(
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp),
horizontalArrangement = Arrangement.spacedBy(16.dp),
Expand All @@ -251,14 +253,14 @@ private fun IconsShowcase() {
}

Box(
Modifier.size(24.dp).background(JewelTheme.colorPalette.blue(4), shape = RoundedCornerShape(4.dp)),
Modifier.size(24.dp).background(iconBackgroundColor, shape = RoundedCornerShape(4.dp)),
contentAlignment = Alignment.Center,
) {
PlatformIcon(AllIconsKeys.Nodes.ConfigFolder, "taskGroup", hint = Stroke(Color.White))
}

Box(
Modifier.size(24.dp).background(JewelTheme.colorPalette.blue(4), shape = RoundedCornerShape(4.dp)),
Modifier.size(24.dp).background(iconBackgroundColor, shape = RoundedCornerShape(4.dp)),
contentAlignment = Alignment.Center,
) {
PlatformIcon(
Expand Down

0 comments on commit 67aad58

Please sign in to comment.