docs(README): 更新自带字幕引擎说明 (#4)

- 在 README.md、README_en.md 和 README_ja.md 中添加了自带字幕引擎的详细说明
- 给予字幕窗口更大的顶置优先级
This commit is contained in:
himeditator
2025-07-07 22:20:04 +08:00
parent 0696651f04
commit 082eb8579b
6 changed files with 127 additions and 7 deletions

View File

@@ -16,7 +16,6 @@ class CaptionWindow {
show: false,
frame: false,
transparent: true,
alwaysOnTop: true,
center: true,
autoHideMenuBar: true,
...(process.platform === 'linux' ? { icon } : {}),
@@ -26,6 +25,8 @@ class CaptionWindow {
}
})
this.window.setAlwaysOnTop(true, 'screen-saver')
this.window.on('ready-to-show', () => {
this.window?.show()
})
@@ -72,7 +73,8 @@ class CaptionWindow {
ipcMain.on('caption.pin.set', (_, pinned) => {
if(this.window){
this.window.setAlwaysOnTop(pinned)
if(pinned) this.window.setAlwaysOnTop(true, 'screen-saver')
else this.window.setAlwaysOnTop(false)
}
})
}