mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
Linux: rounded iconify/maximize/close buttons if using FlatLaf window decorations (issue #821)
This commit is contained in:
@@ -102,9 +102,9 @@ public class UIDefaultsDump
|
||||
|
||||
dump( FlatMacLightLaf.class.getName(), dir, false );
|
||||
dump( FlatMacDarkLaf.class.getName(), dir, false );
|
||||
}
|
||||
|
||||
dump( FlatTestLaf.class.getName(), dir, false );
|
||||
dump( FlatTestLaf.class.getName(), dir, false );
|
||||
}
|
||||
|
||||
// dump( MyBasicLookAndFeel.class.getName(), dir, false );
|
||||
// dump( MetalLookAndFeel.class.getName(), dir, false );
|
||||
@@ -184,8 +184,11 @@ public class UIDefaultsDump
|
||||
dump( dir, "", lookAndFeel, defaults, key -> !key.contains( "InputMap" ) );
|
||||
|
||||
if( lookAndFeel.getClass() == FlatLightLaf.class || !(lookAndFeel instanceof FlatLaf) ) {
|
||||
dump( dir, "_InputMap", lookAndFeel, defaults, key -> key.contains( "InputMap" ) );
|
||||
dumpActionMaps( dir, "_ActionMap", lookAndFeel, defaults );
|
||||
if( SystemInfo.isWindows || SystemInfo.isMacOS )
|
||||
dump( dir, "_InputMap", lookAndFeel, defaults, key -> key.contains( "InputMap" ) );
|
||||
|
||||
if( SystemInfo.isWindows )
|
||||
dumpActionMaps( dir, "_ActionMap", lookAndFeel, defaults );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -463,6 +463,24 @@ TitlePane.foreground = #00f
|
||||
TitlePane.inactiveForeground = #fff
|
||||
TitlePane.borderColor = #f00
|
||||
|
||||
TitlePane.buttonBackground = #fff
|
||||
TitlePane.buttonForeground = #000
|
||||
TitlePane.buttonInactiveBackground = #ddd
|
||||
TitlePane.buttonInactiveForeground = #00f
|
||||
TitlePane.buttonHoverBackground = #bbb
|
||||
TitlePane.buttonHoverForeground = #0f0
|
||||
TitlePane.buttonPressedBackground = #999
|
||||
TitlePane.buttonPressedForeground = #f00
|
||||
|
||||
TitlePane.closeBackground = #f00
|
||||
TitlePane.closeForeground = #000
|
||||
TitlePane.closeInactiveBackground = #d00
|
||||
TitlePane.closeInactiveForeground = #0ff
|
||||
TitlePane.closeHoverBackground = #b00
|
||||
TitlePane.closeHoverForeground = #f0f
|
||||
TitlePane.closePressedBackground = #900
|
||||
TitlePane.closePressedForeground = #0f0
|
||||
|
||||
|
||||
#---- ToggleButton ----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user