This commit is contained in:
xkeyC 2023-11-06 23:38:55 +08:00
parent f8ceb1713b
commit d035f309c2
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ function RSIAutoLogin(email, pwd) {
}); });
} }
function SCTShowToast(message, duration) { function SCTShowToast(message) {
let m = document.createElement('div'); let m = document.createElement('div');
m.innerHTML = message; m.innerHTML = message;
m.style.cssText = "font-family:siyuan;max-width:60%;min-width: 150px;padding:0 14px;height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: rgba(0, 0, 0,.7);font-size: 16px;"; m.style.cssText = "font-family:siyuan;max-width:60%;min-width: 150px;padding:0 14px;height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: rgba(0, 0, 0,.7);font-size: 16px;";

View File

@ -94,12 +94,12 @@ class AppConf {
); );
await windowManager.show(); await windowManager.show();
await Window.initialize(); await Window.initialize();
await Window.hideWindowControls();
if (windowsDeviceInfo.productName.contains("Windows 11")) { if (windowsDeviceInfo.productName.contains("Windows 11")) {
await Window.setEffect( await Window.setEffect(
effect: WindowEffect.acrylic, effect: WindowEffect.acrylic,
); );
} }
await Window.hideWindowControls();
}); });
await _checkUpdate(); await _checkUpdate();
AnalyticsApi.touch("launch"); AnalyticsApi.touch("launch");