From 06f8902de64daf1138324e25d24a2c6e5dbcf7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 9 Sep 2024 13:40:15 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feature:=20=E5=90=AF=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=B0=BA=E5=AF=B8=E5=8F=AF=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config/index.js | 1 + packages/gui/src/background.js | 6 +++--- packages/gui/src/view/pages/setting.vue | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/core/src/config/index.js b/packages/core/src/config/index.js index 011f18a3c..3805441d5 100644 --- a/packages/core/src/config/index.js +++ b/packages/core/src/config/index.js @@ -27,6 +27,7 @@ module.exports = { personalUrl: '' }, startShowWindow: true, // 启动时是否打开窗口:true=打开窗口, false=隐藏窗口 + windowSize: { width: 900, height: 750 }, // 启动时,窗口的尺寸 theme: 'dark', // 主题:light=亮色, dark=暗色 autoChecked: true, // 是否自动检查更新 skipPreRelease: true, // 是否忽略预发布版本 diff --git a/packages/gui/src/background.js b/packages/gui/src/background.js index 88ee458c2..6a09f0813 100644 --- a/packages/gui/src/background.js +++ b/packages/gui/src/background.js @@ -136,10 +136,10 @@ function changeAppConfig (config) { function createWindow (startHideWindow) { // Create the browser window. - + const windowSize = DevSidecar.api.config.get().app.windowSize || {} win = new BrowserWindow({ - width: 900, - height: 750, + width: windowSize.width || 900, + height: windowSize.height || 750, title: 'DevSidecar', webPreferences: { enableRemoteModule: true, diff --git a/packages/gui/src/view/pages/setting.vue b/packages/gui/src/view/pages/setting.vue index 33cba2876..8b3543725 100644 --- a/packages/gui/src/view/pages/setting.vue +++ b/packages/gui/src/view/pages/setting.vue @@ -101,6 +101,10 @@ 启动软件时,是否打开窗口。提示:如果设置为隐藏窗口,可点击系统托盘小图标打开窗口。 + + + +
From d685c73bbfe21810bb4514b109afeb72c0e5b590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 9 Sep 2024 13:56:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9C=80=E5=A4=A7=E5=80=BC=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/src/view/pages/setting.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gui/src/view/pages/setting.vue b/packages/gui/src/view/pages/setting.vue index 8b3543725..0d337cfe4 100644 --- a/packages/gui/src/view/pages/setting.vue +++ b/packages/gui/src/view/pages/setting.vue @@ -102,8 +102,8 @@ - - +  * +
From 1d63a5092516a76a189b5f32907e1b901498605f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 9 Sep 2024 14:01:48 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9C=80=E5=A4=A7=E5=80=BC=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/src/view/pages/setting.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gui/src/view/pages/setting.vue b/packages/gui/src/view/pages/setting.vue index 0d337cfe4..f42511586 100644 --- a/packages/gui/src/view/pages/setting.vue +++ b/packages/gui/src/view/pages/setting.vue @@ -101,9 +101,9 @@ 启动软件时,是否打开窗口。提示:如果设置为隐藏窗口,可点击系统托盘小图标打开窗口。 - -  * - + +  * +