Changed default for linux (22 was a LITTLE too small) to 24. Added logger warnings when using the default

This commit is contained in:
nathan 2018-11-03 15:45:01 +01:00
parent 2e776475f0
commit 756fabd162

View File

@ -118,7 +118,8 @@ class GtkTheme {
return height;
}
else {
return 16; // who knows?
LoggerFactory.getLogger(GtkTheme.class).warn("Unable to get tray menu image size. Using default.");
return 16;
}
}
@ -314,7 +315,6 @@ class GtkTheme {
return size * ratio;
}
My ratio is 1.47674, that means I have no scaling at all when there is a 1.5 factor existing. Is it reasonable? Wouldn't it make more sense to use the factor the closest to the ratio rather than what is done here?
*/
File mainFile = new File("/usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/config/main.xml");
@ -465,7 +465,9 @@ My ratio is 1.47674, that means I have no scaling at all when there is a 1.5 fac
}
// sane default
return 22;
LoggerFactory.getLogger(GtkTheme.class).warn("Unable to get tray image size. Using default.");
return 24;
}
/**