feat: 添加投屏窗口大小控制

This commit is contained in:
kakajim 2023-11-17 11:10:01 +08:00
parent c967cb5a1a
commit 97d7868aba
3 changed files with 22 additions and 0 deletions

View File

@ -231,6 +231,10 @@
"preferences.window.always-top.placeholder": "Keep control window topmost",
"preferences.window.disable-screen-saver.name": "Disable Screensaver",
"preferences.window.disable-screen-saver.placeholder": "Disable computer screensaver",
"preferences.window.size.width": "Window width",
"preferences.window.size.width.placeholder": "The window width may cause the display to be blurred",
"preferences.window.size.height": "Window height",
"preferences.window.size.height.placeholder": "Window height",
"preferences.record.name": "Recording",
"preferences.record.format.name": "Format",

View File

@ -229,6 +229,10 @@
"preferences.window.always-top.placeholder": "开启后控制窗口将始终位于顶部",
"preferences.window.disable-screen-saver.name": "禁用屏幕保护程序",
"preferences.window.disable-screen-saver.placeholder": "开启后将禁用计算机屏幕保护程序",
"preferences.window.size.width": "窗口宽度",
"preferences.window.size.width.placeholder": "窗口宽度, 可能会导致显示模糊",
"preferences.window.size.height": "窗口高度",
"preferences.window.size.height.placeholder": "窗口高度",
"preferences.record.name": "音视频录制",
"preferences.record.format.name": "录制视频格式",

View File

@ -31,5 +31,19 @@ export default {
value: undefined,
placeholder: 'preferences.window.disable-screen-saver.placeholder',
},
windowWidth: {
label: 'preferences.window.size.width',
field: '--window-width',
type: 'Input.number',
value: undefined,
placeholder: 'preferences.window.size.width.placeholder',
},
windowHeight: {
label: 'preferences.window.size.height',
field: '--window-height',
type: 'Input.number',
value: undefined,
placeholder: 'preferences.window.size.height.placeholder',
},
},
}