From dae6826cc1cf3cac66ef116f28734796bee4197c Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 14 Oct 2020 18:20:03 +0800 Subject: [PATCH] =?UTF-8?q?Linux=E7=89=88=E7=9A=84=E8=BD=AF=E4=BB=B6?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8=E5=9C=86?= =?UTF-8?q?=E8=A7=92=E4=B8=8E=E9=98=B4=E5=BD=B1=EF=BC=8C=E9=A1=BA=E4=BE=BF?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=A1=8C=E9=9D=A2=E6=AD=8C=E8=AF=8D?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=8F=98=E7=99=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 4 ++++ src/main/index.js | 5 +++-- src/renderer/App.vue | 7 ++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 140dab0e..2f900cd3 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,7 @@ +### 优化 + +- Linux版的软件界面默认使用圆角与阴影,顺便修复了桌面歌词窗口变白的问题,已在Ubuntu 18.10测试正常,若显示异常可尝试添加`-nt`参数启动 + ### 修复 - 修复聚合搜索的分页问题 diff --git a/src/main/index.js b/src/main/index.js index f480f0f4..e00ec133 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -95,7 +95,7 @@ function createWindow() { useContentSize: true, width: windowSizeInfo.width, frame: false, - transparent: !isLinux && !global.envParams.nt, + transparent: !global.envParams.nt, enableRemoteModule: false, // icon: path.join(global.__static, isWin ? 'icons/256x256.ico' : 'icons/512x512.png'), resizable: false, @@ -133,7 +133,8 @@ function init() { createWindow() } -app.on('ready', init) +// https://github.com/electron/electron/issues/16809 +app.on('ready', isLinux ? () => setTimeout(init, 300) : init) app.on('activate', () => { if (global.modules.mainWindow) { diff --git a/src/renderer/App.vue b/src/renderer/App.vue index d9b4d3b5..14951541 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -1,5 +1,5 @@