From e9a3456cf5b84e46cd579803616cd8d5011a4e13 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Tue, 14 Jan 2020 10:44:00 +0100 Subject: [PATCH] Tree: `Tree.textBackground` now has a valid color and is no longer null; instead set `Tree.rendererFillBackground` to false to always get correct cell backgrounds (in IntelliJ themes or if `tree.setBackground(...)` was used) undone commit 645be4bfa3c201373fc785789c934ed65f78bea4 --- CHANGELOG.md | 6 ++++++ .../main/resources/com/formdev/flatlaf/FlatLaf.properties | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97bf1a82..138a9fe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ FlatLaf Change Log ================== +## Unreleased + +- Tree: UI default value `Tree.textBackground` now has a valid color and is no + longer `null`. + + ## 0.24 - Support smooth scrolling with touchpads and high precision mouse wheels. diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties index 0c24e127..ce303fb2 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties @@ -475,11 +475,12 @@ ToolTip.foregroundInactive=@disabledText Tree.border=1,1,1,1 Tree.selectionInactiveBackground=@selectionInactiveBackground Tree.selectionInactiveForeground=@selectionInactiveForeground -Tree.textBackground=null +Tree.textBackground=$Tree.background Tree.selectionBorderColor=@cellFocusColor Tree.dropCellBackground=@dropCellBackground Tree.dropCellForeground=@dropCellForeground Tree.dropLineColor=@dropLineColor +Tree.rendererFillBackground=false Tree.rendererMargins=1,2,1,2 Tree.wideSelection=true Tree.paintLines=false