CheckBox: fixed background of check boxes in JIDE CheckBoxTree (broken since commit dd8ab242fb)

This commit is contained in:
Karl Tauber
2021-02-04 19:41:14 +01:00
parent 2f3c8868a7
commit 5ccd92ece6
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ FlatLaf Change Log
- Fixed color of `<address>` tag in HTML text.
- IntelliJ Themes: Fixed table header background when dragging column in "Dark
Flat" and "Light Flat" themes.
- CheckBox: Fixed background of check boxes in JIDE `CheckBoxTree`. (regression
in 1.0-rc2)
## 1.0-rc2

View File

@@ -123,7 +123,7 @@ public class FlatRadioButtonUI
// - if background was explicitly set to a non-UIResource color
if( !c.isOpaque() &&
((AbstractButton)c).isContentAreaFilled() &&
(c.getBackground() != defaultBackground) )
!defaultBackground.equals( c.getBackground() ) )
{
g.setColor( c.getBackground() );
g.fillRect( 0, 0, c.getWidth(), c.getHeight() );