Fixed screen scaling check for KDE
This commit is contained in:
parent
f4d147ccca
commit
ecb4c736d4
|
@ -288,12 +288,12 @@ class GtkTheme {
|
|||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// System.err.println("screen scale: " + screenScale.get());
|
||||
// System.err.println("screen DPI: " + screenDPI.get());
|
||||
|
||||
if (OSUtil.DesktopEnv.isKDE()) {
|
||||
if (screenScale.get() == 0) {
|
||||
/*
|
||||
*
|
||||
* Looking in plasma-framework/src/declarativeimports/core/units.cpp:
|
||||
|
@ -373,6 +373,7 @@ class GtkTheme {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user