Skip to content

Commit 9d41932

Browse files
committed
round the stroke cap on the spinner
1 parent 575ad3c commit 9d41932

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/processing/app/contrib/ListPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Icon renderProgressIcon(float amount, int hash) {
234234
// g2.fillRect(0, 0, ICON_SIZE, ICON_SIZE);
235235
g2.translate(0.5, 0.5);
236236

237-
g2.setStroke(new BasicStroke(1.5f));
237+
g2.setStroke(new BasicStroke(1.5f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
238238

239239
Color iconColor = Theme.getColor("manager.list.icon.color");
240240
g2.setColor(iconColor);
@@ -256,8 +256,8 @@ Icon renderProgressIcon(float amount, int hash) {
256256
g2.fill(circle);
257257

258258
g2.translate(FFS_JAVA2D/2, FFS_JAVA2D/2);
259-
// offset by epoch to avoid integer out of bounds
260-
final long EPOCH = 1500000000000L + Math.abs((long) hash); // date is in 2001
259+
// offset by epoch to avoid integer out of bounds (the date is in 2001)
260+
final long EPOCH = 1500000000000L + Math.abs((long) hash);
261261
int angle = (int) ((System.currentTimeMillis() - EPOCH) / 20) % 360;
262262
g2.rotate(angle);
263263

0 commit comments

Comments
 (0)