Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Jan 31, 2021
2 parents 403ce40 + 777e5d1 commit 4ac11e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/featurecat/lizzie/gui/ConfigDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,12 @@ protected void paintComponent(Graphics g) {
int squareLength = 30;
int stoneRadius = squareLength < 4 ? 1 : squareLength / 2 - 1;
int size = stoneRadius * 2 + 1;
double r = stoneRadius * Lizzie.config.shadowSize / 100;
double r =
stoneRadius
* (theme == null || cmbThemes.getSelectedIndex() <= 0
? Lizzie.config.shadowSize
: theme.shadowSize())
/ 100;
int shadowSize = (int) (r * 0.3) == 0 ? 1 : (int) (r * 0.3);
int fartherShadowSize = (int) (r * 0.17) == 0 ? 1 : (int) (r * 0.17);
int stoneX = x + squareLength * 2;
Expand Down

0 comments on commit 4ac11e0

Please sign in to comment.