From aed15af3866f3809f7c3f82f88cdfba3bc7ef850 Mon Sep 17 00:00:00 2001
From: himeditator
Date: Sat, 31 Jan 2026 13:38:53 +0800
Subject: [PATCH] =?UTF-8?q?feat(window):=20=E5=AD=97=E5=B9=95=E7=AA=97?=
=?UTF-8?q?=E5=8F=A3=E6=94=B9=E4=B8=BA=E5=A7=8B=E7=BB=88=E9=A1=B6=E7=BD=AE?=
=?UTF-8?q?=EF=BC=8C=E7=AA=97=E5=8F=A3=E9=A1=B6=E7=BD=AE=E9=80=89=E9=A1=B9?=
=?UTF-8?q?=E6=94=B9=E4=B8=BA=E9=BC=A0=E6=A0=87=E7=A9=BF=E9=80=8F=E9=80=89?=
=?UTF-8?q?=E9=A1=B9(#26)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 4 ++--
README_en.md | 4 ++--
README_ja.md | 4 ++--
docs/CHANGELOG.md | 8 +++++++
docs/api-docs/electron-ipc.md | 4 ++--
docs/user-manual/en.md | 4 ++--
docs/user-manual/ja.md | 4 ++--
docs/user-manual/zh.md | 4 ++--
src/main/CaptionWindow.ts | 5 ++---
src/renderer/index.html | 2 +-
src/renderer/src/components/EngineStatus.vue | 2 +-
src/renderer/src/i18n/lang/en.ts | 2 +-
src/renderer/src/i18n/lang/ja.ts | 2 +-
src/renderer/src/i18n/lang/zh.ts | 2 +-
src/renderer/src/views/CaptionPage.vue | 22 +++++++++++++++++---
15 files changed, 48 insertions(+), 25 deletions(-)
diff --git a/README.md b/README.md
index 8f3b54f..96f077d 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
auto-caption
Auto Caption 是一个跨平台的实时字幕显示软件。
-
+
@@ -14,7 +14,7 @@
| English
| 日本語 |
- v1.1.0 版本已经发布,新增 GLM-ASR 云端字幕模型和 OpenAI 兼容模型翻译...
+ v1.1.1 版本已经发布,新增 GLM-ASR 云端字幕模型和 OpenAI 兼容模型翻译...

diff --git a/README_en.md b/README_en.md
index a6ad0fc..fdec7f2 100644
--- a/README_en.md
+++ b/README_en.md
@@ -3,7 +3,7 @@
auto-caption
Auto Caption is a cross-platform real-time caption display software.
-
+
@@ -14,7 +14,7 @@
| English
| 日本語 |
- v1.1.0 has been released, adding the GLM-ASR cloud caption model and OpenAI compatible model translation...
+ v1.1.1 has been released, adding the GLM-ASR cloud caption model and OpenAI compatible model translation...

diff --git a/README_ja.md b/README_ja.md
index e9d0a25..966855d 100644
--- a/README_ja.md
+++ b/README_ja.md
@@ -3,7 +3,7 @@
auto-caption
Auto Caption はクロスプラットフォームのリアルタイム字幕表示ソフトウェアです。
-
+
@@ -14,7 +14,7 @@
| English
| 日本語 |
- v1.1.0 バージョンがリリースされました。GLM-ASR クラウド字幕モデルと OpenAI 互換モデル翻訳が追加されました...
+ v1.1.1 バージョンがリリースされました。GLM-ASR クラウド字幕モデルと OpenAI 互換モデル翻訳が追加されました...

diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 8e11c0e..c7ab0a9 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -180,3 +180,11 @@
- 添加基于 GLM-ASR 的字幕引擎
- 添加 OpenAI API 兼容模型作为新的翻译模型
+
+## v1.1.1
+
+### 优化体验
+
+- 取消字幕窗口的顶置选项,字幕窗口将始终处于顶置状态
+- 将字幕窗口顶置选项改为鼠标穿透选项,当图钉图标为实心时,表示启用鼠标穿透
+
diff --git a/docs/api-docs/electron-ipc.md b/docs/api-docs/electron-ipc.md
index eacc673..64c5d91 100644
--- a/docs/api-docs/electron-ipc.md
+++ b/docs/api-docs/electron-ipc.md
@@ -202,9 +202,9 @@
**数据类型:** `number`
-### `caption.pin.set`
+### `caption.mouseEvents.ignore`
-**介绍:** 是否将窗口置顶
+**介绍:** 是否设置鼠标穿透
**发起方:** 前端字幕窗口
diff --git a/docs/user-manual/en.md b/docs/user-manual/en.md
index 10e0434..a88a97b 100644
--- a/docs/user-manual/en.md
+++ b/docs/user-manual/en.md
@@ -1,6 +1,6 @@
# Auto Caption User Manual
-Corresponding Version: v1.1.0
+Corresponding Version: v1.1.1
**Note: Due to limited personal resources, the English and Japanese documentation files for this project (except for the README document) will no longer be maintained. The content of this document may not be consistent with the latest version of the project. If you are willing to help with translation, please submit relevant Pull Requests.**
@@ -116,7 +116,7 @@ After completing all configurations, click the "Start Caption Engine" button on
### Adjusting the Caption Display Window
-The following image shows the caption display window, which displays the latest captions in real-time. The three buttons in the upper right corner of the window have the following functions: pin the window to the front, open the caption control window, and close the caption display window. The width of the window can be adjusted by moving the mouse to the left or right edge of the window and dragging the mouse.
+The following image shows the caption display window, which displays the latest captions in real-time. The functions of the three buttons in the upper right corner of the window are: to close the caption display window, to open the caption control window, and to enable mouse pass-through. The width of the window can be adjusted by moving the mouse to the left or right edge of the window and dragging the mouse.

diff --git a/docs/user-manual/ja.md b/docs/user-manual/ja.md
index f9103c4..09f9a05 100644
--- a/docs/user-manual/ja.md
+++ b/docs/user-manual/ja.md
@@ -1,6 +1,6 @@
# Auto Caption ユーザーマニュアル
-対応バージョン:v1.1.0
+対応バージョン:v1.1.1
この文書は大規模モデルを使用して翻訳されていますので、内容に正確でない部分があるかもしれません。
@@ -116,7 +116,7 @@ sudo yum install pulseaudio pavucontrol
### 字幕表示ウィンドウの調整
-下の図は字幕表示ウィンドウです。このウィンドウは現在の最新の字幕をリアルタイムで表示します。ウィンドウの右上にある3つのボタンの機能はそれぞれ次の通りです:ウィンドウを最前面に固定する、字幕制御ウィンドウを開く、字幕表示ウィンドウを閉じる。このウィンドウの幅は調整可能です。マウスをウィンドウの左右の端に移動し、ドラッグして幅を調整します。
+下の図は字幕表示ウィンドウです。このウィンドウは現在の最新の字幕をリアルタイムで表示します。ウィンドウの右上にある3つのボタンの機能は、それぞれ字幕表示ウィンドウを閉じる、字幕制御ウィンドウを開く、マウス透過を有効化することです。このウィンドウの幅は調整可能です。マウスをウィンドウの左右の端に移動し、ドラッグして幅を調整します。

diff --git a/docs/user-manual/zh.md b/docs/user-manual/zh.md
index 94f4079..3b587e3 100644
--- a/docs/user-manual/zh.md
+++ b/docs/user-manual/zh.md
@@ -1,6 +1,6 @@
# Auto Caption 用户手册
-对应版本:v1.1.0
+对应版本:v1.1.1
## 软件简介
@@ -113,7 +113,7 @@ sudo yum install pulseaudio pavucontrol
### 调整字幕展示窗口
-如下图为字幕展示窗口,该窗口实时展示当前最新字幕。窗口右上角三个按钮的功能分别是:将窗口固定在最前面、打开字幕控制窗口、关闭字幕展示窗口。该窗口宽度可以调整,将鼠标移动至窗口的左右边缘,拖动鼠标即可调整宽度。
+如下图为字幕展示窗口,该窗口实时展示当前最新字幕。窗口右上角三个按钮的功能分别是:关闭字幕展示窗口、打开字幕控制窗口、启用鼠标穿透。该窗口宽度可以调整,将鼠标移动至窗口的左右边缘,拖动鼠标即可调整宽度。

diff --git a/src/main/CaptionWindow.ts b/src/main/CaptionWindow.ts
index cb74311..c489e69 100644
--- a/src/main/CaptionWindow.ts
+++ b/src/main/CaptionWindow.ts
@@ -77,10 +77,9 @@ class CaptionWindow {
}
})
- ipcMain.on('caption.pin.set', (_, pinned) => {
+ ipcMain.on('caption.mouseEvents.ignore', (_, ignore: boolean) => {
if(this.window){
- if(pinned) this.window.setAlwaysOnTop(true, 'screen-saver')
- else this.window.setAlwaysOnTop(false)
+ this.window.setIgnoreMouseEvents(ignore, { forward: ignore })
}
})
}
diff --git a/src/renderer/index.html b/src/renderer/index.html
index 1d6c1eb..aea6762 100644
--- a/src/renderer/index.html
+++ b/src/renderer/index.html
@@ -2,7 +2,7 @@
- Auto Caption v1.1.0
+ Auto Caption v1.1.1
{{ $t('status.about.desc') }}
-
{{ $t('status.about.version') }}v1.1.0
+
{{ $t('status.about.version') }}v1.1.1
{{ $t('status.about.author') }}
-
+
@@ -96,7 +100,7 @@ const captionLog = useCaptionLogStore();
const { captionData } = storeToRefs(captionLog);
const caption = ref();
const windowHeight = ref(100);
-const pinned = ref(true);
+const pinned = ref(false);
onMounted(() => {
const resizeObserver = new ResizeObserver(entries => {
@@ -114,7 +118,7 @@ onMounted(() => {
function pinCaptionWindow() {
pinned.value = !pinned.value;
- window.electron.ipcRenderer.send('caption.pin.set', pinned.value)
+ window.electron.ipcRenderer.send('caption.mouseEvents.ignore', pinned.value)
}
function openControlWindow() {
@@ -124,6 +128,18 @@ function openControlWindow() {
function closeCaptionWindow() {
window.electron.ipcRenderer.send('caption.window.close')
}
+
+function onTitleBarEnter() {
+ if(pinned.value) {
+ window.electron.ipcRenderer.send('caption.mouseEvents.ignore', false)
+ }
+}
+
+function onTitleBarLeave() {
+ if(pinned.value) {
+ window.electron.ipcRenderer.send('caption.mouseEvents.ignore', true)
+ }
+}