Skip to content

Commit

Permalink
feat: 添加投屏窗口大小控制
Browse files Browse the repository at this point in the history
  • Loading branch information
hellonone committed Nov 17, 2023
1 parent c967cb5 commit 97d7868
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/locales/languages/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/languages/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "录制视频格式",
Expand Down
14 changes: 14 additions & 0 deletions src/store/preference/model/window/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
}

0 comments on commit 97d7868

Please sign in to comment.