From 922abd2a1f051fe2ffbcc143aeb699f719a344f2 Mon Sep 17 00:00:00 2001 From: viarotel Date: Fri, 13 Oct 2023 09:48:40 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=F0=9F=9A=80=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E7=9A=84=E9=AB=98=E7=BA=A7=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- .../src/components/Advanced/index.vue | 10 +++++++--- src/renderer/src/components/Devices/index.vue | 4 ++-- .../src/store/scrcpy/model/device/index.js | 19 +++++++++++++++++-- .../src/store/scrcpy/model/window/index.js | 18 ++++++++++++++++-- 5 files changed, 45 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2a7b12a..f86a3bd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ 📱 Use Scrcpy with a graphical interface to display and control your Android device, driven by Electron
- viarotel-escrcpy + viarotel-escrcpy
## 特点 @@ -82,8 +82,8 @@ 1. 用户界面进行优化,制作合适的 Logo ✅ 2. 内置的软件更新功能 ✅ 3. 录制和保存音视频 ✅ -4. 添加 macOS 及 linux 操作系统的支持 🚧 -5. 添加外部控制栏 🚧 +4. 添加设备交互控制栏 🚧 +5. 添加 macOS 及 linux 操作系统的支持 🚧 6. 支持语言国际化功能 🚧 7. 添加对游戏的增强功能 如游戏键位映射 🚧 diff --git a/src/renderer/src/components/Advanced/index.vue b/src/renderer/src/components/Advanced/index.vue index aa0418d..008720b 100644 --- a/src/renderer/src/components/Advanced/index.vue +++ b/src/renderer/src/components/Advanced/index.vue @@ -14,7 +14,7 @@
- + - {{ item_1.label }} + {{ item_1.label }}
@@ -56,6 +57,7 @@ v-bind="item_1.props || {}" v-model.number="scrcpyForm[item_1.field]" class="!w-full" + :title="item_1.placeholder" :placeholder="item_1.placeholder" clearable > @@ -67,6 +69,7 @@ class="!w-full" clearable :placeholder="item_1.placeholder" + :title="item_1.placeholder" @click="handleDirectory(item_1)" > 无线模式 @@ -173,7 +173,7 @@ export default { row.$recordLoading = true const recordPath = this.getRecordPath(row) try { - const command = `--serial=${row.id} --window-title=${row.name}-${row.id} --record=${recordPath} ${this.stringScrcpyConfig}` + const command = `--serial=${row.id} --window-title=${row.name}-${row.id}-🎥录制中... --record=${recordPath} ${this.stringScrcpyConfig}` console.log('handleRecord.command', command) diff --git a/src/renderer/src/store/scrcpy/model/device/index.js b/src/renderer/src/store/scrcpy/model/device/index.js index f171fa9..2654076 100644 --- a/src/renderer/src/store/scrcpy/model/device/index.js +++ b/src/renderer/src/store/scrcpy/model/device/index.js @@ -17,11 +17,26 @@ export default () => { tips: '仅有线方式连接时有效', }, { - label: '关闭屏幕', + label: '控制时关闭屏幕', type: 'switch', field: '--turn-screen-off', value: false, - placeholder: '开启后连接镜像时将自动关闭设备屏幕', + placeholder: '开启后控制设备时将自动关闭设备屏幕', + }, + { + label: '控制结束关闭屏幕', + type: 'switch', + field: '--power-off-on-close', + value: false, + placeholder: '开启后停止控制设备将自动关闭设备屏幕', + }, + { + label: '控制时停止充电', + type: 'switch', + field: '--no-power-on', + value: false, + placeholder: '开启后控制设备时将停止充电', + tips: '某些机型上似乎不起作用', }, ] } diff --git a/src/renderer/src/store/scrcpy/model/window/index.js b/src/renderer/src/store/scrcpy/model/window/index.js index 634ee08..89359d2 100644 --- a/src/renderer/src/store/scrcpy/model/window/index.js +++ b/src/renderer/src/store/scrcpy/model/window/index.js @@ -5,14 +5,28 @@ export default () => { field: '--window-borderless', type: 'switch', value: false, - placeholder: '开启无边框模式', + placeholder: '开启后控制窗口将变为无边框模式', }, { label: '全屏模式', field: '--fullscreen', type: 'switch', value: false, - placeholder: '开启全屏模式', + placeholder: '开启后控制窗口将全屏显示模式', + }, + { + label: '始终位于顶部', + field: '--always-on-top', + type: 'switch', + value: false, + placeholder: '开启后控制窗口将始终位于顶部', + }, + { + label: '禁用屏幕保护程序', + field: '--disable-screensaver', + type: 'switch', + value: false, + placeholder: '开启后将禁用计算机屏幕保护程序', }, ] }