Browse Source

Check if text antialiasing hint isn't null.

pull/245/head
weisj 4 years ago
parent
commit
b5da5cdb2d
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

@ -199,8 +199,8 @@ public class DarkSVGIcon implements DerivableIcon<DarkSVGIcon>, RotateIcon, Seri
RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g.setRenderingHint(
RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);
g.setRenderingHint(
RenderingHints.KEY_TEXT_ANTIALIASING, UIManager.get(RenderingHints.KEY_TEXT_ANTIALIASING));
Object aaHint = UIManager.get(RenderingHints.KEY_TEXT_ANTIALIASING);
if (aaHint != null) g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, aaHint);
icon.paintIcon(null, g, 0, 0);
g.dispose();
return bi;

Loading…
Cancel
Save