From 3ce5df21237eed1828d0a7bccd2dcbf17680e64e Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Sat, 20 Apr 2024 12:45:02 +0100 Subject: [PATCH] Fix dividers not showing up in old UI themes The color key we were using was correct, but it is missing a fallback for when it's undefined. Such is the case with old UI themes (e.g., Darcula). So, the proper fix is to use JBColor.border(), which has a hardcoded fallback color. --- .../main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt index e9332739c..9ddde4a74 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt @@ -431,7 +431,7 @@ private fun readChipStyle(): ChipStyle { private fun readDividerStyle() = DividerStyle( - color = retrieveColorOrUnspecified("Borders.color"), + color = JBColor.border().toComposeColorOrUnspecified(), metrics = DividerMetrics.defaults(), )