You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2020/01/05 11:30:07 UTC

[GitHub] [netbeans] DevCharly opened a new pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

DevCharly opened a new pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846
 
 
   Before:
   
   ![image](https://user-images.githubusercontent.com/5604048/71779328-36503180-2fb6-11ea-897a-c91ea1381b24.png)
   
   After:
   
   ![image](https://user-images.githubusercontent.com/5604048/71779331-3f410300-2fb6-11ea-8dd3-3d2665fdfb0f.png)
   
   Before:
   
   ![image](https://user-images.githubusercontent.com/5604048/71779336-45cf7a80-2fb6-11ea-9ef5-34894da14084.png)
   
   After:
   
   ![image](https://user-images.githubusercontent.com/5604048/71779340-4e27b580-2fb6-11ea-8de9-a7b71d25db14.png)
   
   The reason for the too small icons in the above images is that I took the screenshots running NB in Java 8 on a150% HiDPI screen.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363114982
 
 

 ##########
 File path: platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
 ##########
 @@ -63,6 +67,12 @@
             "nb.multitabs.button.left.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_LEFT_BUTTON), // NOI18N
             "nb.multitabs.button.right.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_RIGHT_BUTTON), // NOI18N
             "nb.multitabs.button.rollover", true, // NOI18N
+
+            // Change some colors from ColorUIResource to Color because they are used as
+            // background colors for checkboxes (e.g. in org.netbeans.modules.palette.ui.CategoryButton),
+            // which in FlatLaf paint background only if background color is not a UIResource.
+            "PropSheet.setBackground", new Color(UIManager.getColor("PropSheet.setBackground").getRGB()),
+            "PropSheet.selectedSetBackground", new Color(UIManager.getColor("PropSheet.selectedSetBackground").getRGB()),
 
 Review comment:
   I don't see a change in the property sheet checkbox rendering in the before/after screenshots. Am I missing something?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363105028
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -497,9 +498,11 @@ public void setFormDesignerBackgroundColor(java.awt.Color value) {
      * @return color of the border of the designer.
      */
     public java.awt.Color getFormDesignerBorderColor() {
-        int rgb = getPreferences().getInt(PROP_FORMDESIGNER_BORDER_COLOR , new Color(224, 224, 255).getRGB());
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.borderColor"); //NOI18N
 
 Review comment:
   The class `FormLoaderSettings` manages the options that you can edit in "Options > Java > GUI Builder", but not all options in this class are implemented in the Options dialog. So it is not possible to change the background or border color in the Options dialog.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363102357
 
 

 ##########
 File path: platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
 ##########
 @@ -63,6 +67,12 @@
             "nb.multitabs.button.left.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_LEFT_BUTTON), // NOI18N
             "nb.multitabs.button.right.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_RIGHT_BUTTON), // NOI18N
             "nb.multitabs.button.rollover", true, // NOI18N
+
+            // Change some colors from ColorUIResource to Color because they are used as
+            // background colors for checkboxes (e.g. in org.netbeans.modules.palette.ui.CategoryButton),
+            // which in FlatLaf paint background only if background color is not a UIResource.
+            "PropSheet.setBackground", new Color(UIManager.getColor("PropSheet.setBackground").getRGB()),
+            "PropSheet.selectedSetBackground", new Color(UIManager.getColor("PropSheet.selectedSetBackground").getRGB()),
 
 Review comment:
   Am I right that these changes (in FlatLFCustoms) are related to the LAF's appearance as a whole, i.e. not specifically related to the form designer?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363383209
 
 

 ##########
 File path: platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
 ##########
 @@ -63,6 +67,12 @@
             "nb.multitabs.button.left.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_LEFT_BUTTON), // NOI18N
             "nb.multitabs.button.right.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_RIGHT_BUTTON), // NOI18N
             "nb.multitabs.button.rollover", true, // NOI18N
+
+            // Change some colors from ColorUIResource to Color because they are used as
+            // background colors for checkboxes (e.g. in org.netbeans.modules.palette.ui.CategoryButton),
+            // which in FlatLaf paint background only if background color is not a UIResource.
+            "PropSheet.setBackground", new Color(UIManager.getColor("PropSheet.setBackground").getRGB()),
+            "PropSheet.selectedSetBackground", new Color(UIManager.getColor("PropSheet.selectedSetBackground").getRGB()),
 
 Review comment:
   The checkbox is in the designer palette, but it does not look like a checkbox because the check-icons are changed:
   
   ![image](https://user-images.githubusercontent.com/5604048/71833650-ac838f80-30ad-11ea-928b-0e8d02c5b728.png)
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363393942
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -472,12 +472,13 @@ public void setPaletteInToolBar(boolean value) {
      * @return background color of the designer.
      */
     public java.awt.Color getFormDesignerBackgroundColor() {
-        Color defaultBackground = UIManager.getColor( "Tree.background" ); //NOI18N
-        if( null == defaultBackground )
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.background"); //NOI18N
+        if (defaultBackground == null)
+            defaultBackground = UIManager.getColor("Tree.background"); //NOI18N
+        if (defaultBackground == null)
 
 Review comment:
   > How come Tree.background is not dark for FlatLAF, though?
   
   It is dark and it is used.
   
   I've first added UI value for the designer border color (because it was too bright) and thought that it is good idea to do the same for the designer background in case need to change it.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r364019958
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -472,12 +472,13 @@ public void setPaletteInToolBar(boolean value) {
      * @return background color of the designer.
      */
     public java.awt.Color getFormDesignerBackgroundColor() {
-        Color defaultBackground = UIManager.getColor( "Tree.background" ); //NOI18N
-        if( null == defaultBackground )
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.background"); //NOI18N
+        if (defaultBackground == null)
+            defaultBackground = UIManager.getColor("Tree.background"); //NOI18N
+        if (defaultBackground == null)
 
 Review comment:
   Sounds reasonable.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363389727
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -497,9 +498,11 @@ public void setFormDesignerBackgroundColor(java.awt.Color value) {
      * @return color of the border of the designer.
      */
     public java.awt.Color getFormDesignerBorderColor() {
-        int rgb = getPreferences().getInt(PROP_FORMDESIGNER_BORDER_COLOR , new Color(224, 224, 255).getRGB());
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.borderColor"); //NOI18N
 
 Review comment:
   > Is there a reason why these were not needed to implement the other LAFs (e.g. Darcula, GTK, Aqua, Windows)?
   
   Because the default values work for light themes. But look not so good for dark themes. Here are screenshots of Darcula and Dark Metal. The design border (red arrow) is way too light:
   
   ![image](https://user-images.githubusercontent.com/5604048/71834173-dd17f900-30ae-11ea-9e70-c2a9610b8a76.png)
   
   > Also, is there a convention of putting constants at the end of org.netbeans.swing.plaf.LFCustoms for every key in used in UIDefaults?
   
   Don't know. Most of them can only be used in subclasses because they are protected. In case of FlatLaf, the values are in the properties files and constants are not used.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi commented on issue #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#issuecomment-570922309
 
 
   For me this looks good.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r364020983
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -497,9 +498,11 @@ public void setFormDesignerBackgroundColor(java.awt.Color value) {
      * @return color of the border of the designer.
      */
     public java.awt.Color getFormDesignerBorderColor() {
-        int rgb = getPreferences().getInt(PROP_FORMDESIGNER_BORDER_COLOR , new Color(224, 224, 255).getRGB());
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.borderColor"); //NOI18N
 
 Review comment:
   OK, I don't have strong opinions here...

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363101929
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -472,12 +472,13 @@ public void setPaletteInToolBar(boolean value) {
      * @return background color of the designer.
      */
     public java.awt.Color getFormDesignerBackgroundColor() {
-        Color defaultBackground = UIManager.getColor( "Tree.background" ); //NOI18N
-        if( null == defaultBackground )
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.background"); //NOI18N
+        if (defaultBackground == null)
+            defaultBackground = UIManager.getColor("Tree.background"); //NOI18N
+        if (defaultBackground == null)
 
 Review comment:
   Which LAF is used in the form designer? Is it the same as the IDE? In that case, should the background color not be taken from the LAF rather than from a special constant? (Also, I wonder why "Tree.background" was used previously instead of the default JPanel background.)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363106814
 
 

 ##########
 File path: platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
 ##########
 @@ -63,6 +67,12 @@
             "nb.multitabs.button.left.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_LEFT_BUTTON), // NOI18N
             "nb.multitabs.button.right.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_RIGHT_BUTTON), // NOI18N
             "nb.multitabs.button.rollover", true, // NOI18N
+
+            // Change some colors from ColorUIResource to Color because they are used as
+            // background colors for checkboxes (e.g. in org.netbeans.modules.palette.ui.CategoryButton),
+            // which in FlatLaf paint background only if background color is not a UIResource.
+            "PropSheet.setBackground", new Color(UIManager.getColor("PropSheet.setBackground").getRGB()),
+            "PropSheet.selectedSetBackground", new Color(UIManager.getColor("PropSheet.selectedSetBackground").getRGB()),
 
 Review comment:
   Yes.
   
   The controlFont is also used in other places. E.g. as fallback font in `HtmlRenderer`. The "Terminal" uses the size of controlFont to create its monospaced font for "Terminal" view and "Options > Misc. > Terminal > Preview".
   
   The `PropertySheet` component is also used outside of the form designer. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363114669
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -497,9 +498,11 @@ public void setFormDesignerBackgroundColor(java.awt.Color value) {
      * @return color of the border of the designer.
      */
     public java.awt.Color getFormDesignerBorderColor() {
-        int rgb = getPreferences().getInt(PROP_FORMDESIGNER_BORDER_COLOR , new Color(224, 224, 255).getRGB());
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.borderColor"); //NOI18N
 
 Review comment:
   Makes sense.
   
   FlatLAF is adding a lot of new UIDefaults keys. Is there a reason why these were not needed to implement the other LAFs (e.g. Darcula, GTK, Aqua, Windows)? Is it related to the fact that FlatLAF is being implemented in a separate module, as opposed to in the o.n.swing.plaf module?
   
   (Adding more UIDefaults keys seems fine... it just requires the usual extra care associated with API changes.)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on issue #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on issue #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#issuecomment-571841932
 
 
   Looks fine to me. Thanks for answering my questions!
   
   Last, I noticed your comment: "The reason for the too small icons in the above images is that I took the screenshots running NB in Java 8 on a 150% HiDPI screen". Did that get fixed in this patch? (It seems so from the screenshots? Was that the CONTROLFONT property?)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363114825
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -497,9 +498,11 @@ public void setFormDesignerBackgroundColor(java.awt.Color value) {
      * @return color of the border of the designer.
      */
     public java.awt.Color getFormDesignerBorderColor() {
-        int rgb = getPreferences().getInt(PROP_FORMDESIGNER_BORDER_COLOR , new Color(224, 224, 255).getRGB());
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.borderColor"); //NOI18N
 
 Review comment:
   Also, is there a convention of putting constants at the end of org.netbeans.swing.plaf.LFCustoms for every key in used in UIDefaults?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363105582
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -497,9 +498,11 @@ public void setFormDesignerBackgroundColor(java.awt.Color value) {
      * @return color of the border of the designer.
      */
     public java.awt.Color getFormDesignerBorderColor() {
-        int rgb = getPreferences().getInt(PROP_FORMDESIGNER_BORDER_COLOR , new Color(224, 224, 255).getRGB());
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.borderColor"); //NOI18N
 
 Review comment:
   > Also, why is the new property using the word "designer" twice?
   
   The idea was that `nb.formdesigner` is the module prefix and `designer` the component name within that module. But you're right. This is unnecessary. I'll remove it.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363114296
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -472,12 +472,13 @@ public void setPaletteInToolBar(boolean value) {
      * @return background color of the designer.
      */
     public java.awt.Color getFormDesignerBackgroundColor() {
-        Color defaultBackground = UIManager.getColor( "Tree.background" ); //NOI18N
-        if( null == defaultBackground )
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.background"); //NOI18N
+        if (defaultBackground == null)
+            defaultBackground = UIManager.getColor("Tree.background"); //NOI18N
+        if (defaultBackground == null)
 
 Review comment:
   Oh, right, the constant is from the LAF. My main concern was that it would seem logical to take it from the JPanel background, rather than invent a new constant. But since the existing code doesn't do that, I suppose it makes sense to add a constant to preserve backwards-compatibility.
   
   How come Tree.background is not dark for FlatLAF, though?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi merged pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
lkishalmi merged pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r364021517
 
 

 ##########
 File path: platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
 ##########
 @@ -63,6 +67,12 @@
             "nb.multitabs.button.left.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_LEFT_BUTTON), // NOI18N
             "nb.multitabs.button.right.icon", FlatTabControlIcon.get(TabControlButton.ID_SCROLL_RIGHT_BUTTON), // NOI18N
             "nb.multitabs.button.rollover", true, // NOI18N
+
+            // Change some colors from ColorUIResource to Color because they are used as
+            // background colors for checkboxes (e.g. in org.netbeans.modules.palette.ui.CategoryButton),
+            // which in FlatLaf paint background only if background color is not a UIResource.
+            "PropSheet.setBackground", new Color(UIManager.getColor("PropSheet.setBackground").getRGB()),
+            "PropSheet.selectedSetBackground", new Color(UIManager.getColor("PropSheet.selectedSetBackground").getRGB()),
 
 Review comment:
   Ah! Tricky use of JCheckBox there...

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363104102
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -472,12 +472,13 @@ public void setPaletteInToolBar(boolean value) {
      * @return background color of the designer.
      */
     public java.awt.Color getFormDesignerBackgroundColor() {
-        Color defaultBackground = UIManager.getColor( "Tree.background" ); //NOI18N
-        if( null == defaultBackground )
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.background"); //NOI18N
+        if (defaultBackground == null)
+            defaultBackground = UIManager.getColor("Tree.background"); //NOI18N
+        if (defaultBackground == null)
 
 Review comment:
   As far as I know the form designer always uses the IDE LAF.
   But it is possible to preview the form with other LAFs in new window. (right-click on panel: "Preview Design > LAF")
   
   > In that case, should the background color not be taken from the LAF rather than from a special constant?
   
   No sure what you mean. `UIManager.getColor()` gets the color from the LAF (if set).
   
   `Tree.background` was probably used because it is white, while `Panel.background` is gray.
   BTW `nb.formdesigner.designer.background` is currently not used. I've added it for completeness.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1846: [NETBEANS-3428] FlatLaf: fixes for form designer
URL: https://github.com/apache/netbeans/pull/1846#discussion_r363102032
 
 

 ##########
 File path: java/form/src/org/netbeans/modules/form/FormLoaderSettings.java
 ##########
 @@ -497,9 +498,11 @@ public void setFormDesignerBackgroundColor(java.awt.Color value) {
      * @return color of the border of the designer.
      */
     public java.awt.Color getFormDesignerBorderColor() {
-        int rgb = getPreferences().getInt(PROP_FORMDESIGNER_BORDER_COLOR , new Color(224, 224, 255).getRGB());
+        Color defaultBackground = UIManager.getColor("nb.formdesigner.designer.borderColor"); //NOI18N
 
 Review comment:
   Isn't this what the PROP_FORMDESIGNER_BORDER_COLOR property is for? Or does that have some other purpose?
   
   Also, shouldn't this come from whichever LAF is being used to display form designer components? (As in my previous comment.)
   
   Also, why is the new property using the word "designer" twice?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists