diff --git a/src/net/azib/ipscan/gui/GUI.java b/src/net/azib/ipscan/gui/GUI.java index bbe682aa..26efc5d7 100644 --- a/src/net/azib/ipscan/gui/GUI.java +++ b/src/net/azib/ipscan/gui/GUI.java @@ -70,17 +70,17 @@ public class GUI implements AutoCloseable { Class os = Class.forName("org.eclipse.swt.internal.cocoa.OS"); Boolean isDarkMode = (Boolean) os.getMethod("isSystemDarkAppearance").invoke(null); Boolean isAppDarkAppearance = (Boolean) os.getMethod("isAppDarkAppearance").invoke(null); - System.err.println("Dark appearance flags before: " + isDarkMode + ", " + isAppDarkAppearance); + LOG.info("Dark appearance flags before: " + isDarkMode + ", " + isAppDarkAppearance); if (isDarkMode && !isAppDarkAppearance) { os.getMethod("setTheme", boolean.class).invoke(null, isDarkMode); isDarkMode = (Boolean) os.getMethod("isSystemDarkAppearance").invoke(null); isAppDarkAppearance = (Boolean) os.getMethod("isAppDarkAppearance").invoke(null); - System.err.println("Dark appearance flags after: " + isDarkMode + ", " + isAppDarkAppearance); + LOG.info("Dark appearance flags after: " + isDarkMode + ", " + isAppDarkAppearance); // workaround for a bug in SWT: colors need to be reinited after changing the appearance Method initColors = display.getClass().getDeclaredMethod("initColors"); initColors.setAccessible(true); initColors.invoke(display); - System.err.println("initColors called"); + LOG.info("initColors called"); } } catch (Exception e) {