mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-198348: hide track of transparent scroll bar on Mac if thumb is hidden
This commit is contained in:
@@ -87,6 +87,11 @@ final class MacScrollBarUI extends DefaultScrollBarUI {
|
||||
void onThumbHover(boolean hover) {
|
||||
}
|
||||
|
||||
@Override
|
||||
void paintTrack(Graphics2D g, JComponent c) {
|
||||
if (myTrack.animator.myValue > 0 && myThumb.animator.myValue > 0 || isOpaque(c)) super.paintTrack(g, c);
|
||||
}
|
||||
|
||||
@Override
|
||||
void paintThumb(Graphics2D g, JComponent c) {
|
||||
if (isOpaque(c)) {
|
||||
|
||||
Reference in New Issue
Block a user