diff --git a/ide-laf-bridge/ide-laf-bridge-233/src/main/kotlin/org/jetbrains/jewel/bridge/BridgePaletteMapperFactory.kt b/ide-laf-bridge/ide-laf-bridge-233/src/main/kotlin/org/jetbrains/jewel/bridge/BridgePaletteMapperFactory.kt index c296ac625..d29ed438f 100644 --- a/ide-laf-bridge/ide-laf-bridge-233/src/main/kotlin/org/jetbrains/jewel/bridge/BridgePaletteMapperFactory.kt +++ b/ide-laf-bridge/ide-laf-bridge-233/src/main/kotlin/org/jetbrains/jewel/bridge/BridgePaletteMapperFactory.kt @@ -17,7 +17,15 @@ object BridgePaletteMapperFactory : PaletteMapperFactory() { val bean = uiTheme.describe() - val iconColorPalette = bean.colorPalette + // TODO: in New UI + Dark theme values can be non String, but IJColorUIResource + // since these are deserialized values simply casted to Map. + // Let's handle it while it is not fixed in platform + val iconColorPalette = (bean.colorPalette as Map).mapValues { + when (val value = it.value) { + is String -> value + else -> null + } + } val keyPalette = UITheme.getColorPalette() val themeColors = bean.colors