Skip to content

Commit

Permalink
Fix dividers not showing up in old UI themes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rock3r committed Apr 20, 2024
1 parent c3cb6b8 commit 3ce5df2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ private fun readChipStyle(): ChipStyle {

private fun readDividerStyle() =
DividerStyle(
color = retrieveColorOrUnspecified("Borders.color"),
color = JBColor.border().toComposeColorOrUnspecified(),
metrics = DividerMetrics.defaults(),
)

Expand Down

0 comments on commit 3ce5df2

Please sign in to comment.