Force to disable shadows in Mac and Linux in order to close issue #122 #124 #131 #136 #145

This commit is contained in:
huangyuhui 2017-06-11 13:15:38 +08:00
parent fbeabfcad2
commit 091898551e

View File

@ -112,7 +112,7 @@ public final class Config implements Cloneable {
}
public boolean isEnableShadow() {
return enableShadow;
return enableShadow && OS.os() == OS.WINDOWS;
}
public void setEnableShadow(boolean enableShadow) {
@ -225,7 +225,9 @@ public final class Config implements Cloneable {
public Config() {
clientToken = UUID.randomUUID().toString();
logintype = downloadtype = 0;
enableAnimation = enableBlur = enableShadow = true;
enableAnimation = enableBlur = true;
if (OS.os() == OS.WINDOWS)
enableShadow = true;
theme = LAFTheme.BLUE.id;
decorated = OS.os() == OS.LINUX;
auth = new HashMap<>();