Browse Source

SVGIcon: Formatting

pull/235/head
weisj 4 years ago
parent
commit
f611ac25e6
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 4
      property-loader/src/main/java/com/github/weisj/darklaf/icons/DarkSVGIcon.java

4
property-loader/src/main/java/com/github/weisj/darklaf/icons/DarkSVGIcon.java

@ -234,7 +234,9 @@ public class DarkSVGIcon implements DerivableIcon<DarkSVGIcon>, RotateIcon, Seri
double r = rotation;
if (r < 0) r += 2 * Math.PI;
if (r > 2 * Math.PI) r -= 2 * Math.PI;
return Scale.equalWithError(r, 0) || Scale.equalWithError(r, Math.PI / 2) || Scale.equalWithError(r, Math.PI)
return Scale.equalWithError(r, 0)
|| Scale.equalWithError(r, Math.PI / 2)
|| Scale.equalWithError(r, Math.PI)
|| Scale.equalWithError(r, 3 * Math.PI / 2);
}

Loading…
Cancel
Save