mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-15 08:17:12 -06:00
Demo: hide accent color buttons (instead of disabling them) if not supported by selected theme
This commit is contained in:
@@ -452,9 +452,9 @@ class DemoFrame
|
|||||||
lafClass == FlatIntelliJLaf.class ||
|
lafClass == FlatIntelliJLaf.class ||
|
||||||
lafClass == FlatDarculaLaf.class;
|
lafClass == FlatDarculaLaf.class;
|
||||||
|
|
||||||
accentColorLabel.setEnabled( isAccentColorSupported );
|
accentColorLabel.setVisible( isAccentColorSupported );
|
||||||
for( int i = 0; i < accentColorButtons.length; i++ )
|
for( int i = 0; i < accentColorButtons.length; i++ )
|
||||||
accentColorButtons[i].setEnabled( isAccentColorSupported );
|
accentColorButtons[i].setVisible( isAccentColorSupported );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
|
|||||||
Reference in New Issue
Block a user