Added simplified isUnity() check

This commit is contained in:
nathan 2017-09-03 14:47:21 +02:00
parent bef027f9bf
commit cdb248adbe
1 changed files with 1 additions and 1 deletions

View File

@ -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...