mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-155043 Can't grab inactive scroll bar on OS X
This commit is contained in:
@@ -801,8 +801,10 @@ public class ButtonlessScrollBarUI extends BasicScrollBarUI {
|
||||
Graphics2D g2d = (Graphics2D)g;
|
||||
if (Registry.is("mac.scroll.new.ui")) {
|
||||
float value = (float)(1 - myMacScrollbarFadeLevel);
|
||||
RegionPainter<Float> painter = isDark() ? JBScrollPane.MAC_THUMB_DARK_PAINTER : JBScrollPane.MAC_THUMB_PAINTER;
|
||||
painter.paint(g2d, thumbBounds.x - 2, thumbBounds.y - 2, thumbBounds.width + 4, thumbBounds.height + 4, value);
|
||||
if (!myMacScrollbarHidden || alwaysPaintThumb()) {
|
||||
RegionPainter<Float> painter = isDark() ? JBScrollPane.MAC_THUMB_DARK_PAINTER : JBScrollPane.MAC_THUMB_PAINTER;
|
||||
painter.paint(g2d, thumbBounds.x - 2, thumbBounds.y - 2, thumbBounds.width + 4, thumbBounds.height + 4, value);
|
||||
}
|
||||
return;
|
||||
}
|
||||
RenderingHints oldHints = g2d.getRenderingHints();
|
||||
|
||||
Reference in New Issue
Block a user