Commit graph

2,809 commits

Author SHA1 Message Date
Xu
5e70774732 fix: 支持源窗口中途置顶 2025-08-18 17:20:40 +08:00
Xu
22299ca3ad refactor: 用更简单的方式将缩放窗口置于源窗口之前 2025-08-18 15:03:19 +08:00
Xu
ab399329da refactor: 检查逻辑 2025-08-18 12:49:22 +08:00
Xu
7959679cea feat: 删除置顶选项 2025-08-17 13:47:41 +08:00
Xu
3518f78295 fix: 修复切换前台窗口 2025-08-17 12:00:58 +08:00
Xu
8ab86bf243 Merge branch 'dev' into fix/topmost 2025-08-15 20:18:19 +08:00
Xu
2c75a8f328
自绘非客户区的窗口不再保留非客户区 (#1255)
* fix: 自绘非客户区的窗口也裁剪非客户区

* fix: 适配滚动条

* chore: 添加注释
2025-08-15 20:15:53 +08:00
Xu
d213026927 fix: 始终置顶 2025-08-15 14:03:34 +08:00
Xu
8761057489 Merge branch 'dev' into fix/topmost 2025-08-15 10:21:55 +08:00
Weblate (bot)
6bdafe8106
Translated using Weblate (Chinese (Traditional Han script)) (#1254)
Currently translated at 100.0% (300 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/zh_Hant/

Co-authored-by: CHLBC <chris010613@yahoo.com.tw>
2025-08-15 08:03:34 +08:00
Xu
ae0c914c5c
修复有时误报源窗口无响应 (#1252)
* fix: 尝试修复错误检测源窗口挂起

* fix: 修复消息弹窗 bug
2025-08-14 22:36:28 +08:00
Weblate (bot)
9467b6aa2f
Translations update from Hosted Weblate (#1249)
* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (300 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/zh_Hant/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (300 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/zh_Hant/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (300 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/zh_Hant/

---------

Co-authored-by: CHLBC <chris010613@yahoo.com.tw>
Co-authored-by: 阿宇 addonian1123 <ian98765321@gmail.com>
2025-08-14 08:39:06 +08:00
Weblate (bot)
6c4d75ee3a
Translated using Weblate (Russian) (#1248)
Currently translated at 99.6% (299 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/ru/

Co-authored-by: NightFox <NightFox@myied.org>
2025-08-13 20:14:04 +08:00
Weblate (bot)
07a9643b14
Translated using Weblate (Portuguese (Brazil)) (#1247)
Currently translated at 76.3% (229 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/pt_BR/

Co-authored-by: Toni Garces <tonigarces19@gmail.com>
2025-08-12 19:42:29 +08:00
Xu
b4b6ec5fe5 Merge branch 'dev' into fix/topmost 2025-08-12 08:54:09 +08:00
dependabot[bot]
6ba65bd2ea
chore(deps): bump actions/download-artifact from 4 to 5 (#1245)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 08:27:35 +08:00
imgbot[bot]
4da359c524
[ImgBot] Optimize images (#1243)
*Total -- 2,663.46kb -> 2,303.87kb (13.5%)

/img/repo-card.png -- 39.81kb -> 26.83kb (32.61%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/128.png -- 11.38kb -> 7.67kb (32.58%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/128.png -- 11.12kb -> 7.59kb (31.73%)
/img/main-window-zh.png -- 137.77kb -> 95.21kb (30.89%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/96.png -- 8.60kb -> 6.06kb (29.58%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/96.png -- 8.30kb -> 6.03kb (27.3%)
/img/main-window.png -- 159.94kb -> 118.33kb (26.02%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/64.png -- 5.44kb -> 4.04kb (25.79%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/128.png -- 10.13kb -> 7.68kb (24.14%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/64.png -- 5.35kb -> 4.06kb (24.13%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/96.png -- 7.77kb -> 6.09kb (21.63%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/40.png -- 3.49kb -> 2.78kb (20.37%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/48.png -- 4.13kb -> 3.30kb (20.19%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/24.png -- 2.55kb -> 2.04kb (19.81%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/32.png -- 2.99kb -> 2.42kb (19.2%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/64.png -- 5.00kb -> 4.06kb (18.73%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/40.png -- 3.44kb -> 2.79kb (18.73%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/48.png -- 3.99kb -> 3.26kb (18.34%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/32.png -- 2.92kb -> 2.39kb (18.24%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/32.png -- 2.98kb -> 2.44kb (18.08%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/48.png -- 4.03kb -> 3.31kb (17.75%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/40.png -- 3.43kb -> 2.84kb (17.2%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/16.png -- 2.14kb -> 1.78kb (16.7%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/16.png -- 2.13kb -> 1.85kb (13.29%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/20.png -- 2.32kb -> 2.02kb (12.92%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/16.png -- 2.11kb -> 1.84kb (12.79%)
/img/screenshot.png -- 2,150.68kb -> 1,917.65kb (10.83%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/24.png -- 2.56kb -> 2.29kb (10.49%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/20.png -- 2.34kb -> 2.12kb (9.38%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/20.png -- 2.33kb -> 2.14kb (7.97%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/24.png -- 2.56kb -> 2.38kb (6.87%)
/src/Magpie/Icons/PNG/Magpie Icon Full Enabled/256.png -- 16.50kb -> 16.09kb (2.47%)
/src/Magpie/Icons/PNG/Magpie Icon Full Disabled/256.png -- 17.01kb -> 16.61kb (2.39%)
/src/Magpie/Icons/PNG/Magpie Icon Simplified/256.png -- 16.24kb -> 15.87kb (2.24%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2025-08-11 19:33:06 +08:00
Xu
79b5c3d982 fix: 按钮随 DPI 缩放 2025-08-11 19:25:41 +08:00
Xu
1064801a38 Merge branch 'dev' into fix/topmost 2025-08-11 19:13:01 +08:00
Xu
6381424727 docs: 更新截图 2025-08-11 19:05:17 +08:00
Xu
9dea5f5f3e
修复截图菜单项 ID 冲突 (#1242)
* fix: 修复 ImGui ID 冲突

* fix: 修复 ImGui ID 冲突
2025-08-11 19:00:26 +08:00
Xu
0eaf9ecdd4 feat: 模拟中途置顶的窗口 2025-08-11 17:17:57 +08:00
Xu
8ea304bd54 docs: 更新截图 2025-08-10 21:43:13 +08:00
Xu
2ec4166905 docs: 更新 README 2025-08-10 21:04:19 +08:00
Xu
355676dc49 chore: 修复 CI 触发条件 2025-08-10 20:36:23 +08:00
Xu
19a5032da1 chore: 修复发布 wiki 脚本 2025-08-10 20:33:02 +08:00
Blinue
a350639eb3 Update version.json 2025-08-10 12:21:44 +00:00
Xu
f2888d5c81 docs: 更新文档 v0.12.0 2025-08-10 19:40:57 +08:00
Weblate (bot)
debf547ab8
Translated using Weblate (Polish) (#1239)
Currently translated at 100.0% (300 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/pl/

Co-authored-by: Krzysztof <k_marc_2002@proton.me>
2025-08-10 19:27:40 +08:00
Xu
fb2270ec89
优化 Graphics Capture 对 Kirikiri 窗口的支持 (#1238)
* feat: 尝试模拟 kirikiri 窗口行为

* feat: 完善模拟 kirikiri 窗口

* feat: 优化 WGC 对 kirikiri 窗口的处理

* chore: 优化注释

* fix: 优化错误处理

* chore: 添加注释
2025-08-09 21:20:34 +08:00
Weblate (bot)
ffdc3e772b
Translated using Weblate (Japanese) (#1234)
Currently translated at 100.0% (300 of 300 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/ja/

Co-authored-by: animeojisan <engine54jp@gmail.com>
2025-08-08 12:17:07 +08:00
Xu
dce6adb097 fix: 修复 Win10 中工具栏图标错误 2025-08-07 09:43:46 +08:00
Xu
07a6dc2c62 feat: 工具栏支持最小化源窗口 2025-08-06 23:13:21 +08:00
Xu
cdb27a48e6
定时器和托盘菜单支持窗口模式缩放 (#1233)
* feat: 更新 UI

* feat: 实现定时器功能

* feat: 托盘菜单支持全屏/窗口缩放定时器

* fix: 修复偶尔取消计时会立刻缩放的问题
2025-08-06 20:17:37 +08:00
Weblate (bot)
f7f7ebbc56
Translated using Weblate (Polish) (#1229)
Currently translated at 100.0% (297 of 297 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/pl/

Co-authored-by: Krzysztof <k_marc_2002@proton.me>
2025-08-05 19:19:15 +08:00
allcontributors[bot]
396a1956c2
docs: add kangurek-kao as a contributor for translation (#1230)
* docs: update README.md [skip ci]

* docs: update README_ZH.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-08-05 19:19:06 +08:00
Xu
ea107ac9c3
优化自动缩放机制 (#1227)
* fix: 重复缩放时不显示错误消息

* fix: 减小 ScalingService 和 ScalingRuntime 状态不一致的窗口期

* fix: 避免自动缩放和最小化窗口还原机制冲突

* chore: 修复 clang 编译警告

* refactor: ScalingRuntime::SwitchScalingState 重命名为 ScalingRuntime::ToggleScaling

* fix: 恢复检查自动缩放

* feat: 自动缩放可以终止当前缩放

* chore: 添加注释

* feat: 自动缩放不再等待最小化和不可见的窗口
现已支持直接缩放这类窗口,由 ScalingRuntime 等待
2025-08-05 17:55:29 +08:00
Xu
96a1c7287a feat: 源窗口隐藏会等待显示然后恢复缩放 2025-08-03 17:14:21 +08:00
Xu
7b71454b5d fix: 修复任务栏不在底部导致启动时窗口位置错误的问题 2025-08-03 14:17:06 +08:00
Weblate (bot)
151bb3a6ed
Translated using Weblate (Japanese) (#1223)
Currently translated at 100.0% (297 of 297 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/ja/

Co-authored-by: animeojisan <engine54jp@gmail.com>
2025-08-01 23:16:49 +08:00
Xu
d84ad92b97 chore: 优化项目文件 2025-07-31 19:56:17 +08:00
Xu
5db358fdf3 fix: 修复窗口模式初始缩放倍数错误 2025-07-31 13:11:30 +08:00
Weblate (bot)
16457063fb
Translated using Weblate (Japanese) (#1222)
Currently translated at 100.0% (297 of 297 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/ja/

Co-authored-by: animeojisan <engine54jp@gmail.com>
2025-07-30 22:21:10 +08:00
Xu
02bf2a1c5f chore: 发布版本 CI 不再加载缓存 2025-07-30 09:27:34 +08:00
Xu
19a964195c fix: 修复发布脚本获取最新版本标签
不确定是否修好了,只能下次发布预览版再验证
2025-07-29 21:17:34 +08:00
Blinue
2b5c715d2b Update version.json 2025-07-29 12:53:45 +00:00
Xu
e70d5ee075 fix: 使结束缩放后清理更可靠 v0.12.0-preview2 2025-07-29 20:29:40 +08:00
Xu
f116629169
源窗口最小化不再终止缩放 (#1219)
* fix: 优化窗口移动检测

* fix: 优化拖拽窗口时缩放行为
窗口模式立即缩放,全屏模式将等待拖拽结束

* feat: 源窗口最小化后等待其还原

* fix: 修复显示消息时窗口被销毁然后立即显示新消息会导致崩溃

* feat: 源窗口在最小化然后还原后可以还原缩放尺寸

* refactor: 微小重构

* feat: 缩放时禁用源窗口的窗口动画

* refactor: 禁用/还原窗口动画的逻辑集中在 WindowAnimationDisabler 类

* feat: 不再禁用窗口动画
Win10 的动画很突兀,Win11 却还行
2025-07-29 20:16:35 +08:00
Weblate (bot)
18f3749502
Translated using Weblate (Japanese) (#1218)
Currently translated at 100.0% (297 of 297 strings)

Translation: Magpie/UI
Translate-URL: https://hosted.weblate.org/projects/magpie/ui/ja/

Co-authored-by: animeojisan <engine54jp@gmail.com>
2025-07-28 21:50:40 +08:00
Xu
78edfd5217
开机启动始终最小化到系统托盘 (#1217)
* feat: 开机启动时始终最小化到系统托盘

* feat: 开机启动选项添加描述
2025-07-28 19:02:06 +08:00