Skip to content

Commit

Permalink
Merge pull request #19 from daawaan4U/theone/update-round-border-arcs
Browse files Browse the repository at this point in the history
Reset background border arc sizes to match with FlatLaf border size
  • Loading branch information
geilala authored May 29, 2024
2 parents f807fa7 + d388a26 commit 24c6f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/edu/project/components/WeatherIsland.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected void paintComponent(Graphics graphics) {
Graphics2D graphics2d = (Graphics2D) graphics;
graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
graphics2d.setColor(getBackground());
graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16 * 2, 16 * 2);
graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16, 16);
super.paintComponent(graphics2d);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void paintComponent(Graphics graphics) {
Graphics2D graphics2d = (Graphics2D) graphics;
graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
graphics2d.setColor(Color.LIGHT_GRAY);
graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16 * 2, 16 * 2);
graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16, 16);
super.paintComponent(graphics);
}
}

0 comments on commit 24c6f9d

Please sign in to comment.