mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
scrollbar looking better
This commit is contained in:
@@ -86,10 +86,11 @@ public class PdeScrollBarUI extends BasicScrollBarUI {
|
||||
color = Theme.getColor("editor.scrollbar.thumb.enabled.color");
|
||||
}
|
||||
g2.setPaint(color);
|
||||
int arc = Math.min(c.getWidth(), c.getHeight());
|
||||
g2.fillRoundRect(r.x, r.y, r.width, r.height, arc, arc);
|
||||
g2.setPaint(Color.WHITE);
|
||||
g2.drawRoundRect(r.x, r.y, r.width, r.height, arc, arc);
|
||||
int inset = 3;
|
||||
int arc = Math.min(c.getWidth(), c.getHeight()) - inset*2;
|
||||
g2.fillRoundRect(r.x + inset, r.y + inset, r.width - inset*2, r.height - inset*2, arc, arc);
|
||||
// g2.setPaint(Color.WHITE);
|
||||
// g2.drawRoundRect(r.x, r.y, r.width, r.height, arc, arc);
|
||||
g2.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user