void paintThumb(Graphics2D g, int x, int y, int width, int height, JComponent c) { RegionPainter<Float> p = ScrollColorProducer.isDark(c) ? ScrollPainter.Thumb.DARCULA : ScrollPainter.Thumb.DEFAULT; paint(p, g, x, y, width, height, c, myThumbAnimator.myValue, Registry.is("ide.scroll.thumb.small.if.opaque")); }
void paintTrack(Graphics2D g, int x, int y, int width, int height, JComponent c) { RegionPainter<Float> p = ScrollColorProducer.isDark(c) ? ScrollPainter.Track.DARCULA : ScrollPainter.Track.DEFAULT; if (!isTrackExpandable() && Registry.is("ide.scroll.background.wide")) { p.paint(g, x, y, width, height, myTrackAnimator.myValue); return; // temporary registry key for designer } paint(p, g, x, y, width, height, c, myTrackAnimator.myValue, false); }