Commit graph

1,371 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
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
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
9dea5f5f3e
修复截图菜单项 ID 冲突 (#1242)
* fix: 修复 ImGui ID 冲突

* fix: 修复 ImGui ID 冲突
2025-08-11 19:00:26 +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
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
e70d5ee075 fix: 使结束缩放后清理更可靠 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
Xu
d1076bbb95
全屏缩放默认不再置顶 (#1216)
* feat: 全屏缩放时默认不再置顶,添加置顶选项

* fix: 修复消息弹窗会使窗口取消置顶的问题

* fix: 修复消息弹窗弹出动画 bug
2025-07-28 18:26:42 +08:00
Weblate (bot)
62a41d8da8
Translated using Weblate (Japanese) (#1214)
Currently translated at 100.0% (294 of 294 strings)

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

Co-authored-by: animeojisan <engine54jp@gmail.com>
2025-07-26 19:20:54 +08:00
Xu
25a36718a7 feat: 开发者选项支持打开日志位置 2025-07-24 18:53:27 +08:00
Xu
06ffbf76f7
进一步优化对弹窗的兼容性 (#1212)
* feat: 进一步优化对弹窗的兼容性

* fix

* fix: 调试模式只跳过置顶
2025-07-24 18:52:51 +08:00
Xu
dd458ff447 refactor: 简化 UpdateService 的 json 处理 2025-07-23 22:39:30 +08:00
Xu
b1ede5714f fix: 修复缩放时退出导致崩溃的问题 2025-07-23 22:08:44 +08:00
Xu
ef4053769d
IUnknown::as 替换为 IUnknown::try_as (#1211)
* refactor: IUnknown::as 替换为 IUnknown::try_as
删除 SettingsCard,ActionIconToolTip 属性

* refactor: 优化头文件包含
2025-07-23 21:40:08 +08:00
Weblate (bot)
e8d7732891
Translations update from Hosted Weblate (#1210)
* Translated using Weblate (Japanese)

Currently translated at 100.0% (294 of 294 strings)

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

* Translated using Weblate (Japanese)

Currently translated at 100.0% (293 of 293 strings)

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

---------

Co-authored-by: animeojisan <engine54jp@gmail.com>
2025-07-23 19:37:20 +08:00
Xu
bf5fd328c6
不再支持导入 ScaleModels.json (#1209)
* feat: 不再支持导入旧版 ScaleModels.json

* fix: 修复新建缩放模式按钮位置

* fix: 重新实现缓解动画 bug

* fix: 修复 InfoBar 中 Tooltip 的主题

* fix: 优化检查更新按钮样式

* fix: 修复文件对话框的确定按钮有时被禁用
2025-07-23 19:17:51 +08:00
Xu
af56e660bd fix: 自动缩放等待窗口显示 2025-07-23 13:27:41 +08:00
Xu
cad9ed18f5 fix: 修复特定窗口期内缩放导致崩溃 2025-07-22 20:36:43 +08:00
Xu
00073018df
fix: 自动缩放等待窗口开始响应消息 (#1207) 2025-07-22 19:48:56 +08:00
Weblate (bot)
36e16be0ed
Translated using Weblate (Japanese) (#1206)
Currently translated at 100.0% (292 of 292 strings)

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

Co-authored-by: animeojisan <engine54jp@gmail.com>
2025-07-22 19:20:20 +08:00
Xu
f882504df6
支持分别设置全屏和窗口模式缩放的工具栏初始状态 (#1205) 2025-07-22 19:06:42 +08:00
Xu
c16e3fb574
修复全屏缩放会遮挡弹窗的问题 (#1204)
* fix: 修复缩放窗口会遮挡弹窗的问题

* fix: 修复高 CPU 使用率

* fix: IFileOpenDialog 弹窗放到后台线程
在主线程使用 IFileOpenDialog 有些问题,Win10 中按一下 shift 就导致 UI 卡死

* refactor: 优化文件包含

* fix: 修复点击工具栏无法将源窗口带到前台的问题
2025-07-22 18:35:49 +08:00
Xu
bdd8ee1e56
工具栏优化 (#1199)
* feat: 允许在全屏/窗口模式之间切换

* feat: 只有源窗口在前台才允许切换

* feat: 工具栏支持切换全屏/窗口模式缩放

* chore: 工具栏按钮英文首字母大写
2025-07-19 22:26:43 +08:00
Xu
4df29d8d1b fix: 修复呈现错误 2025-07-15 22:51:16 +08:00