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/10 14:35:32 UTC

[GitHub] [netbeans] DevCharly opened a new pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

DevCharly opened a new pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858
 
 
   Improvements and fixes thru FlatLaf 0.24:
   - smooth scrolling (in the same way as already in NB for Windows LaF)
   - fixed missing borders in table header (e.g. in "Watches" view)
   - removed border from "Change Visible Columns" icon button in right-top corner of tables (e.g. in "Watches" view)
   - progress bar in "Flat Dark" theme is now blue
   
   Other fixes in NB code:
   - "Flat Dark" theme: lighter gray color for editor/view borders and separators in main window
   - ascending/descending icons in table header replaced with FlatLaf icons
   - get rid of the focus indicator (black rectangle) in trees (HtmlLabelUI.java)
   - fixed unreadable info text in "Find in Project" dialog (in dark theme)
   - fixed too bright separators in "Find in Project" dialog (in dark theme) (BasicSearchForm.java)
   - fixed wrong selection colors in `OutlineView` (e.g. in "Watches" view)
   
   Before:
   ![image](https://user-images.githubusercontent.com/5604048/72158734-3176ed80-33bb-11ea-95c5-168df84f21be.png)
   
   After:
   ![image](https://user-images.githubusercontent.com/5604048/72158768-46ec1780-33bb-11ea-8b1d-7bfb43194ed2.png)
   
   Before:
   ![image](https://user-images.githubusercontent.com/5604048/72159217-2bcdd780-33bc-11ea-997c-9a2667553c0a.png)
   
   After:
   ![image](https://user-images.githubusercontent.com/5604048/72159232-338d7c00-33bc-11ea-93ae-6fdca62a9e7c.png)
   
   Before:
   ![image](https://user-images.githubusercontent.com/5604048/72159248-41430180-33bc-11ea-9169-b62e7262301c.png)
   The orange arrows indicate issues that are not yet fixed. There are JButton's with EmptyBorder between the parenthesis and JButton's have a minimum width in FlatLaf, whats the reason for the empty space between the parenthesis.
   
   After:
   ![image](https://user-images.githubusercontent.com/5604048/72159327-63d51a80-33bc-11ea-8dd3-3ca6f18bf12c.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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#discussion_r365543233
 
 

 ##########
 File path: platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java
 ##########
 @@ -877,7 +876,6 @@ public void addSeparator() {
             c.insets = new Insets(5, 5, 5, 5);
             c.fill = GridBagConstraints.HORIZONTAL;
             JSeparator separator = new JSeparator(JSeparator.HORIZONTAL);
-            separator.setForeground(SystemColor.controlShadow);
 
 Review comment:
   This are the two horizontal separators in the "Find in Projects" dialog (see screenshots above). In Windows LAF there is no difference because default separator foreground is already controlShadow. Did not check other LAFs, but even if there is difference, this should be no problem. Its just a simple separator in a dialog. Default separator colors should work fine in dialogs.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on issue #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#issuecomment-573433755
 
 
   By the way, I saw you implemented smooth scrolling in the FlatLAF codebase, based on the IntelliJ implementation at https://github.com/JetBrains/intellij-community/blob/31e1b5a8e43219b9571951bab6457cfb3012e3ef/platform/platform-api/src/com/intellij/ui/components/SmoothScrollPane.java#L141-L185 . The Windows LAF smooth scrolling implementation is also based on work from the IntelliJ folks, but was based on an earlier IntelliJ commit ( https://github.com/JetBrains/intellij-community/commit/34b9dfd0585937c3731e06a89554d1dc86f7f235 ).
   
   Do you think your newer implementation might be better in any way? If so, I might consider using it for the Windows LAF as well.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#issuecomment-573070625
 
 
   Both the code and the UI look good to me, though @eirikbakke has beeter eyes for that.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#discussion_r365559843
 
 

 ##########
 File path: platform/openide.explorer/src/org/openide/explorer/view/OutlineView.java
 ##########
 @@ -269,24 +269,28 @@ public void keyReleased(KeyEvent e) {
             defaultTreeActionListener, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), JComponent.WHEN_FOCUSED
         );
 
-        final Color focusSelectionBackground = outline.getSelectionBackground();
-        final Color focusSelectionForeground = outline.getSelectionForeground();
-        outline.addFocusListener(new java.awt.event.FocusListener(){
-            @Override
-            public void focusGained(java.awt.event.FocusEvent ev) {
-                outline.setSelectionBackground(focusSelectionBackground);
-                outline.setSelectionForeground(focusSelectionForeground);
-            }
+        // toggle selection colors depending on whether table is focused or not
+        if (!UIManager.getLookAndFeel().getID().startsWith("FlatLaf")) {
 
 Review comment:
   > Because FlatLaf does this itself. With the NB code enabled it did not work anymore...
   
   That would be a good comment to add in the code.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#discussion_r365559826
 
 

 ##########
 File path: platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java
 ##########
 @@ -877,7 +876,6 @@ public void addSeparator() {
             c.insets = new Insets(5, 5, 5, 5);
             c.fill = GridBagConstraints.HORIZONTAL;
             JSeparator separator = new JSeparator(JSeparator.HORIZONTAL);
-            separator.setForeground(SystemColor.controlShadow);
 
 Review comment:
   Makes sense.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
DevCharly commented on a change in pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#discussion_r365544197
 
 

 ##########
 File path: platform/openide.explorer/src/org/openide/explorer/view/OutlineView.java
 ##########
 @@ -269,24 +269,28 @@ public void keyReleased(KeyEvent e) {
             defaultTreeActionListener, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), JComponent.WHEN_FOCUSED
         );
 
-        final Color focusSelectionBackground = outline.getSelectionBackground();
-        final Color focusSelectionForeground = outline.getSelectionForeground();
-        outline.addFocusListener(new java.awt.event.FocusListener(){
-            @Override
-            public void focusGained(java.awt.event.FocusEvent ev) {
-                outline.setSelectionBackground(focusSelectionBackground);
-                outline.setSelectionForeground(focusSelectionForeground);
-            }
+        // toggle selection colors depending on whether table is focused or not
+        if (!UIManager.getLookAndFeel().getID().startsWith("FlatLaf")) {
 
 Review comment:
   GitHub diff is not that good. In SmartGit it looks like this:
   ![image](https://user-images.githubusercontent.com/5604048/72210927-b13baf80-34c2-11ea-976e-4e8691030feb.png)
   
   > Why is the code not needed for FlatLaf?
   
   Because FlatLaf does this itself. With the NB code enabled it did not work anymore...
   
   But in Windows LAF it works fine. Do not think that there is a problem in the NB code.
   
   
   
   

----------------------------------------------------------------
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 edited a comment on issue #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
lkishalmi edited a comment on issue #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#issuecomment-573070625
 
 
   Both the code and the UI look good to me, though @eirikbakke has better eyes for that.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#discussion_r365537645
 
 

 ##########
 File path: platform/openide.explorer/src/org/openide/explorer/view/OutlineView.java
 ##########
 @@ -269,24 +269,28 @@ public void keyReleased(KeyEvent e) {
             defaultTreeActionListener, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), JComponent.WHEN_FOCUSED
         );
 
-        final Color focusSelectionBackground = outline.getSelectionBackground();
-        final Color focusSelectionForeground = outline.getSelectionForeground();
-        outline.addFocusListener(new java.awt.event.FocusListener(){
-            @Override
-            public void focusGained(java.awt.event.FocusEvent ev) {
-                outline.setSelectionBackground(focusSelectionBackground);
-                outline.setSelectionForeground(focusSelectionForeground);
-            }
+        // toggle selection colors depending on whether table is focused or not
+        if (!UIManager.getLookAndFeel().getID().startsWith("FlatLaf")) {
 
 Review comment:
   The diff is a bit confusing here. Is this just skipping a bunch of code for the FlatLaf case?
   
   Why is the code not needed for FlatLaf? Shouldn't something rather be done so that focusSelectionBackground/focusSelectionForeground ends up being the right color?
   
   (If I remember correctly, there might very well be some bugs in OutlineView around this code; I implemented workarounds in my NetBeans Platform application many years ago. If the changes suggested here are really workarounds for bugs, then maybe the bugs should be fixed instead.)
   
   Maybe add a copy of the isFlatLaf() method for consistency with HtmlLabelUI. That will make it easier to grep for duplicated logic in the future.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on a change in pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#discussion_r365537395
 
 

 ##########
 File path: platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java
 ##########
 @@ -877,7 +876,6 @@ public void addSeparator() {
             c.insets = new Insets(5, 5, 5, 5);
             c.fill = GridBagConstraints.HORIZONTAL;
             JSeparator separator = new JSeparator(JSeparator.HORIZONTAL);
-            separator.setForeground(SystemColor.controlShadow);
 
 Review comment:
   Not sure which separator this is. Does removing this make sense for other LAFs as well?

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on issue #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#issuecomment-573347007
 
 
   This is really great work... thanks for doing this.
   
   By the way, I have a made an improved SVG version of the "choose columns" icon that exists in the upper right-hand corner of some table components in these screenshots. I can commit that one later.

----------------------------------------------------------------
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 #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
lkishalmi merged pull request #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858
 
 
   

----------------------------------------------------------------
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 edited a comment on issue #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes

Posted by GitBox <gi...@apache.org>.
eirikbakke edited a comment on issue #1858: [NETBEANS-3428] Update FlatLaf from 0.23 to 0.24 and other fixes
URL: https://github.com/apache/netbeans/pull/1858#issuecomment-573347007
 
 
   This is really great work... thanks for doing this.
   
   By the way, I have a made an improved SVG version of the "Change Visible Columns" icon that exists in the upper right-hand corner of some table components in these screenshots. I can commit that one later.

----------------------------------------------------------------
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