demitriusbelai commented on code in PR #6391:
URL: https://github.com/apache/netbeans/pull/6391#discussion_r1324846146
##########
platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/Installer.java:
##########
@@ -62,4 +67,17 @@ public void validate() throws IllegalStateException {
System.setProperty( "flatlaf.updateUIOnSystemFontChange", "false" );
}
+ private void uiPropertyChange(PropertyChangeEvent pce) {
+ if ("lookAndFeel".equals(pce.getPropertyName())) { //NOI18N
+ if (UIManager.getLookAndFeel() instanceof FlatLaf
+ && FlatLafPrefs.isUseWindowDecorations()
+ && SystemInfo.isLinux) {
+
+ JFrame.setDefaultLookAndFeelDecorated(true);
+ JDialog.setDefaultLookAndFeelDecorated(true);
Review Comment:
> If there is a listener that turns these on, should there not be some code
turning them off again? Is this code only applicable when the setting or LAF is
changed while NetBeans is running? Or does it end up running on every startup?
It runs only on startup because changing LAF needs a NetBeans restart.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists