mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 22:40:53 +03:00
Native window decorations:
- enabled by default (via UI property `TitlePane.useWindowDecorations`) - dropped system property `flatlaf.useNativeWindowDecorations` and replaced with `flatlaf.useWindowDecorations` - old functionality of system property `flatlaf.useWindowDecorations` removed
This commit is contained in:
@@ -1143,6 +1143,7 @@ TitlePane.menuBarEmbedded true
|
||||
TitlePane.menuBarMargins 0,8,0,22 javax.swing.plaf.InsetsUIResource [UI]
|
||||
TitlePane.restoreIcon [lazy] 44,30 com.formdev.flatlaf.icons.FlatWindowRestoreIcon [UI]
|
||||
TitlePane.titleMargins 3,8,3,8 javax.swing.plaf.InsetsUIResource [UI]
|
||||
TitlePane.useWindowDecorations true
|
||||
|
||||
|
||||
#---- TitledBorder ----
|
||||
|
||||
@@ -1148,6 +1148,7 @@ TitlePane.menuBarEmbedded true
|
||||
TitlePane.menuBarMargins 0,8,0,22 javax.swing.plaf.InsetsUIResource [UI]
|
||||
TitlePane.restoreIcon [lazy] 44,30 com.formdev.flatlaf.icons.FlatWindowRestoreIcon [UI]
|
||||
TitlePane.titleMargins 3,8,3,8 javax.swing.plaf.InsetsUIResource [UI]
|
||||
TitlePane.useWindowDecorations true
|
||||
|
||||
|
||||
#---- TitledBorder ----
|
||||
|
||||
@@ -1140,6 +1140,7 @@ TitlePane.menuBarEmbedded true
|
||||
TitlePane.menuBarMargins 0,8,0,22 javax.swing.plaf.InsetsUIResource [UI]
|
||||
TitlePane.restoreIcon [lazy] 44,30 com.formdev.flatlaf.icons.FlatWindowRestoreIcon [UI]
|
||||
TitlePane.titleMargins 3,8,3,8 javax.swing.plaf.InsetsUIResource [UI]
|
||||
TitlePane.useWindowDecorations true
|
||||
|
||||
|
||||
#---- TitledBorder ----
|
||||
|
||||
@@ -50,9 +50,6 @@ public class FlatNativeWindowBorderTest
|
||||
FlatLightLaf.install();
|
||||
FlatInspector.install( "ctrl shift alt X" );
|
||||
|
||||
JFrame.setDefaultLookAndFeelDecorated( true );
|
||||
JDialog.setDefaultLookAndFeelDecorated( true );
|
||||
|
||||
mainFrame = showFrame();
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user