From cdb248adbe2fd0524694ba3a7ccb06e88089b364 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 3 Sep 2017 14:47:21 +0200 Subject: [PATCH] Added simplified isUnity() check --- src/dorkbox/util/jna/linux/GtkTheme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dorkbox/util/jna/linux/GtkTheme.java b/src/dorkbox/util/jna/linux/GtkTheme.java index 0dd9ffe..27c586a 100644 --- a/src/dorkbox/util/jna/linux/GtkTheme.java +++ b/src/dorkbox/util/jna/linux/GtkTheme.java @@ -371,7 +371,7 @@ My ratio is 1.47674, that means I have no scaling at all when there is a 1.5 fac } } else { - if (OSUtil.Linux.isUbuntu() && env == OSUtil.DesktopEnv.Env.Unity || env == OSUtil.DesktopEnv.Env.Unity7) { + if (OSUtil.Linux.isUbuntu() && OSUtil.DesktopEnv.isUnity(env)) { // if we measure on ubuntu unity using a screen shot (using swing, so....) , the max size was 24, HOWEVER this goes from // the top->bottom of the indicator bar -- and since it was swing, it uses a different rendering method and it (honestly) // looks weird, because there is no padding for the icon. The official AppIndicator size is hardcoded...