eirikbakke commented on code in PR #4286:
URL: https://github.com/apache/netbeans/pull/4286#discussion_r908784195


##########
platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/ui/FlatViewTabDisplayerUI.java:
##########
@@ -232,7 +232,9 @@ private void paintTabBackgroundAtScale1x(Graphics2D g, int 
index, int width, int
             g.fillRect(0, height - contentBorderWidth, width, 
contentBorderWidth);
         }
 
-        if (showTabSeparators && index >= 0) {
+        if (showTabSeparators && index >= 0 &&
+                ((!isSelected(index) && !isSelected(index + 1)
+                || selectedBackground.equals(activeBackground)))) {

Review Comment:
   That's not really documented in the API; better to be explicit. Also, 
wouldn't you want to omit the separator after the last tab? (This is not what 
was previously done, but I think it would be an improvement.)



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

Reply via email to