forked from dorkbox/SystemTray
Only fixes SystemTray issues if AUTO_FIX_INCONSISTENCIES is true
This commit is contained in:
parent
da76a73ab8
commit
54298932c2
@ -737,20 +737,21 @@ class SystemTray {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// this logic has to be before we create the system Tray
|
if (AUTO_FIX_INCONSISTENCIES) {
|
||||||
if (OS.isWindows()) {
|
// this logic has to be before we create the system Tray
|
||||||
// windows hard-codes the image size
|
if (OS.isWindows()) {
|
||||||
SystemTrayFixes.fixWindows(trayImageSize);
|
// windows hard-codes the image size
|
||||||
|
SystemTrayFixes.fixWindows(trayImageSize);
|
||||||
|
}
|
||||||
|
else if (OS.isMacOsX()) {
|
||||||
|
// macosx doesn't respond to all buttons (but should)
|
||||||
|
SystemTrayFixes.fixMacOS();
|
||||||
|
}
|
||||||
|
else if ((OS.isLinux() || OS.isUnix())) {
|
||||||
|
// linux/mac doesn't have transparent backgrounds for swing and hard-codes the image size
|
||||||
|
SystemTrayFixes.fixLinux(trayImageSize);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (OS.isMacOsX()) {
|
|
||||||
// macosx doesn't respond to all buttons (but should)
|
|
||||||
SystemTrayFixes.fixMacOS();
|
|
||||||
}
|
|
||||||
else if ((OS.isLinux() || OS.isUnix())) {
|
|
||||||
// linux/mac doesn't have transparent backgrounds for swing
|
|
||||||
SystemTrayFixes.fixLinux(trayImageSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user