mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
Window decorations: support enabling/disabling unified title bar backgrounds at runtime without FlatLaf.updateUI()
This commit is contained in:
@@ -25,7 +25,6 @@ import java.util.List;
|
||||
import java.util.Random;
|
||||
import javax.swing.*;
|
||||
import com.formdev.flatlaf.FlatClientProperties;
|
||||
import com.formdev.flatlaf.FlatLaf;
|
||||
import net.miginfocom.swing.*;
|
||||
|
||||
/**
|
||||
@@ -112,7 +111,9 @@ public class FlatWindowDecorationsTest
|
||||
|
||||
private void unifiedBackgroundChanged() {
|
||||
UIManager.put( "TitlePane.unifiedBackground", unifiedBackgroundCheckBox.isSelected() );
|
||||
FlatLaf.updateUI();
|
||||
Window window = SwingUtilities.windowForComponent( this );
|
||||
if( window != null )
|
||||
window.repaint();
|
||||
}
|
||||
|
||||
private void menuBarChanged() {
|
||||
|
||||
Reference in New Issue
Block a user