Demo: hide accent color buttons (instead of disabling them) if not supported by selected theme

This commit is contained in:
Karl Tauber
2022-05-09 22:51:38 +02:00
parent 02cf6050a1
commit 96d4bda6c8

View File

@@ -452,9 +452,9 @@ class DemoFrame
lafClass == FlatIntelliJLaf.class ||
lafClass == FlatDarculaLaf.class;
accentColorLabel.setEnabled( isAccentColorSupported );
accentColorLabel.setVisible( isAccentColorSupported );
for( int i = 0; i < accentColorButtons.length; i++ )
accentColorButtons[i].setEnabled( isAccentColorSupported );
accentColorButtons[i].setVisible( isAccentColorSupported );
}
private void initComponents() {