diff --git a/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java b/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java index 300d030f..65780b11 100644 --- a/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java +++ b/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java @@ -29,6 +29,7 @@ import java.awt.image.BufferedImage; import java.awt.image.FilteredImageSource; import java.awt.image.ImageFilter; import java.lang.reflect.Field; +import java.util.logging.Logger; import javax.swing.*; import javax.swing.plaf.basic.BasicHTML; @@ -41,6 +42,8 @@ import com.github.weisj.darklaf.util.*; public class StringPainter { + private static final Logger LOGGER = LogUtil.getLogger(StringPainter.class); + private static boolean translucentAAPaintingEnabled = true; private static boolean experimentalAntialiasingEnabled = false; @@ -146,6 +149,7 @@ public class StringPainter { boolean paintOpaqueBuffered = window != null; if (paintOpaqueBuffered) { + LOGGER.fine(() -> "Using opaque buffering for " + c); double scaleX = Scale.getScaleX((Graphics2D) g); double scaleY = Scale.getScaleX((Graphics2D) g); diff --git a/core/src/test/java/ui/ComponentDemo.java b/core/src/test/java/ui/ComponentDemo.java index 4b5a149e..f8a2f375 100644 --- a/core/src/test/java/ui/ComponentDemo.java +++ b/core/src/test/java/ui/ComponentDemo.java @@ -188,6 +188,7 @@ public interface ComponentDemo { Level currentLevel = LafManager.getLogLevel(); for (Level level : levels) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(level.getName()); + mi.addActionListener(e -> LafManager.setLogLevel(level)); bg.add(mi); logging.add(mi); if (level.equals(currentLevel)) {