Commit graph

2,246 commits

Author SHA1 Message Date
刘旭
6f88d9d153
窗口失去焦点时使标题和标题栏按钮变灰 (#635)
* feat: 窗口失去焦点时使标题和标题栏按钮便灰

* chore: 删除一个 hack,增加一个 hack

* UI: 微调 ExpandedModeThresholdWidth

* fix: 修复不显示边框颜色时深色模式的边框是纯黑而不是半透明的问题

* chore: Debug 配置允许有编译警告
便于实验和调试
2023-06-01 18:44:37 +08:00
刘旭
fdcbebe963
chore: 将警告视为错误 (#633)
* chore: 全局将警告视为错误

* chore: 修复编译 Conan 依赖失败

* chore: 优化注释
2023-05-31 21:32:47 +08:00
刘旭
914c683f98
自定义标题栏 (#624)
* feat: 去除标题栏

* chore: 添加注释

* feat: 保存最大化状态

* fix: 优化最大化状态

* feat: Win11 无需绘制上边框

* feat: 添加 TitlebarControl

* UI: 更改主界面样式

* fix: 修复一个隐蔽的bug

* feat: 添加 CaptionButtonsControl

* feat: 优化上边框颜色

* feat: 实现标题栏的 UI

* fix: 修复标题栏按钮不跟随主题的问题

* fix: 优化主窗口最小尺寸

* fix: 修复上边框绘制错误

* UI: 优化样式

* UI: 稍微优化标题按钮样式

* UI: 优化标题按钮样式

* UI: 优化标题按钮样式

* UI: 优化标题栏样式

* feat: 实现拖拽功能

* fix: 修复调整窗口大小时闪烁的问题

* fix: 更改上边框的实现方式

* feat: 实现上边框调整尺寸和支持 Win11 的贴靠布局

* feat: 实现标题栏按钮的 hover

* feat: 实现标题栏按钮的功能

* perf: 优化性能和添加注释

* fix: 修复一个小错误

* fix: 小修复

* fix: 优化最大化状态

* fix: 修复标题栏上右键菜单

* chore: 添加注释

* fix: 修复 Win10 中以最大化启动时一瞬间显示主题色背景的问题

* UI: 更新 ToggleSwitch 样式

* fix: 修复以最大化显示时的窗口动画

* fix: 修复 Win11 21H1/21H2 的背景

* chore: 优化注释

* feat: 在标题栏显示图标

* UI: 为标题栏添加动画

* fix: 修复导航栏菜单覆盖标题栏的问题

* fix: 修复标题按钮下方的可拖动区域

* feat: 导航栏不再支持 Minimal 状态

* chore: 删除不再需要的代码

* UI: 修正配置文件页面图标位置

* docs: 更新主窗口截图
2023-05-31 19:40:18 +08:00
Weblate (bot)
d2ccc85674
Translated using Weblate (Spanish) (#626)
Currently translated at 100.0% (235 of 235 strings)

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

Co-authored-by: Andrus Diaz German <andrusdiazaleman@gmail.com>
2023-05-23 07:46:37 +08:00
Weblate (bot)
87e05638dd
Translations update from Hosted Weblate (#625)
* Translated using Weblate (Russian)

Currently translated at 100.0% (235 of 235 strings)

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

* Translated using Weblate (Japanese)

Currently translated at 100.0% (235 of 235 strings)

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

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (235 of 235 strings)

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

* Translated using Weblate (Korean)

Currently translated at 100.0% (235 of 235 strings)

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

---------

Co-authored-by: NightFox <NightFox@myied.org>
Co-authored-by: animeojisan <engine54jp@gmail.com>
Co-authored-by: Dan <denqwerta@gmail.com>
Co-authored-by: Meda <med4ndro@gmail.com>
2023-05-21 22:43:17 +08:00
刘旭
65d339c009
feat: 移除 zstd (#623) 2023-05-20 21:16:18 +08:00
刘旭
6305493bfb
优化游戏内叠加层的性能 (#615)
* feat: 添加 ImGuiBackend

* chore: 优化格式

* refactor: 将 ImGuiBackend 重构为类

* chore: 清理 ImGuiBackend

* chore: 清理 ImGuiBackend

* chore: 清理 ImGuiBackend

* perf: 优化着色器编译

* feat: 添加错误记录

* feat: 不再按需构造字体

* feat: 添加 ImGuiFontCacheManager

* feat: 实现序列化 ImFontAtlas

* feat: 实现反序列话 ImFontAtlas

* feat: 为字体缓存添加版本号

* feat: 在字体缓存中保存调试名称

* feat: 添加禁用字体缓存选项
2023-05-20 20:16:52 +08:00
Weblate (bot)
e1a455bef7
Translations update from Hosted Weblate (#619)
* Added translation using Weblate (Korean)

* Translated using Weblate (Korean)

Currently translated at 100.0% (234 of 234 strings)

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

* feat: add Korean support

---------

Co-authored-by: a6e5aa12f60f4a7a <jyw8484@gmail.com>
Co-authored-by: 刘旭 <34770031+Blinue@users.noreply.github.com>
2023-05-19 19:19:01 +08:00
Weblate (bot)
8399fa3ec9
Translations update from Hosted Weblate (#613)
* Deleted translation using Weblate (Portuguese)

* Translated using Weblate (Japanese)

Currently translated at 100.0% (234 of 234 strings)

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

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (234 of 234 strings)

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

* feat: 删除葡萄牙语翻译

---------

Co-authored-by: 刘旭 <blinue@outlook.com>
Co-authored-by: animeojisan <engine54jp@gmail.com>
Co-authored-by: Dan <denqwerta@gmail.com>
Co-authored-by: 刘旭 <34770031+Blinue@users.noreply.github.com>
2023-05-17 20:59:24 +08:00
WilliamHo
bc31b64238
Add anime4k restore shader (#605)
* add anime4k restore shader, soft_VL soft_UL UL variant.

* perf: optimize Anime4K_Restore_CNN_Soft_VL

* perf: slightly optimize Anime4K_Restore_CNN_VL

* perf: optimize Anime4K_Restore_CNN_UL

* perf: minor optimization

* perf: optimize Anime4K_Restore_CNN_Soft_UL

* feat: update Updater

---------

Co-authored-by: 刘旭 <34770031+Blinue@users.noreply.github.com>
2023-05-16 21:29:15 +08:00
刘旭
b7e7be7f56
为游戏内叠加层添加本地化支持 (#600)
* feat: 游戏内覆盖本地化 1

* feat: 加载西班牙语、葡萄牙语、俄语、乌克兰语和土耳其语的字符集

* perf: 缓存字符范围

* feat: 简体中文、繁体中文和日语加载额外的字体

* fix: 加载正确的字体

* perf: 删除不必要的 ImVector<ImWchar>

* perf: 额外字体体积巨大,不能让它驻留内存

* perf: 启用 ImFontAtlasFlags_NoPowerOfTwoHeight
以及格式优化

* feat: 不再显示 CPU 名称
CPU 不是性能瓶颈

* perf: 按需构造字体

* fix: 打开 FPS 右键菜单时构建 UI 字体

* perf: 更改简中和繁中的字符表
来自 541544292a/core/rend/gui_util.cpp

* feat: 添加 CJKCharacterSetForImGui 用于生成供 ImGui 使用的字符表,现在简体中文使用通用规范汉字表中的一级字表(3500字)

* chore: 为 CJKCharacterSetForImGui 添加 README

* feat: 添加字符串本地化

* UI: 优化 FPS 菜单字体

* UI: 优化布局
2023-05-15 18:55:46 +08:00
Weblate (bot)
889c960c94
Translated using Weblate (Chinese (Traditional)) (#603)
Currently translated at 100.0% (221 of 221 strings)

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

Co-authored-by: Frost_Koi <a0193143@gmail.com>
2023-05-13 23:01:18 +08:00
刘旭
92348d8a88
子项目不再共享 Conan 依赖 (#601)
* chore: 子项目之间不再共享 Conan 依赖
这可以有效减小可执行文件的体积

* chore: 修复编译

* chore: 不要复制 conanfile.txt

* Update build.yml
2023-05-12 18:22:02 +08:00
刘旭
f252e13c28 fix: 修复 ContentDialog 的字体 2023-05-12 16:52:42 +08:00
刘旭
a27ca84b14 feat: 更新 Updater 2023-05-11 21:35:08 +08:00
刘旭
9d7e4adea2
移除 NotoSansSC-Regular.otf (#592)
* feat: 游戏内覆盖使用 Segoe UI (Variable)

* chore: 删除 NotoSansSC-Regular.otf

* feat: 只在必要的时候使用等宽数字
现在有三种字体:
1. 普通 UI 文字,将来会支持多语言
2. 数字字符等宽的 UI 文字,只支持 ASCII
3. 用于绘制 FPS 的字体,数字字符等宽

* chore: 添加 noexcept

* UI: 优化 UI

* UI: 微小优化
2023-05-11 21:22:49 +08:00
刘旭
723dc7a57e
fix: 根据显示语言选择字体 (#599)
* fix: 根据显示语言选择字体
控件根据 Language 属性选择合适的字体,在打包应用中这由操作系统处理,但我们不是

* fix: 修复 ContentDialog 字体
2023-05-11 18:22:22 +08:00
刘旭
2d45664efb chore: 更新依赖 2023-05-10 10:46:07 +08:00
刘旭
98806c9983 feat: 从 WinUI 的资源中加载“设置”的翻译,而不是我们自己翻译它 2023-05-10 10:22:47 +08:00
Weblate (bot)
543c4d5f44
Translations update from Hosted Weblate (#597)
* Added translation using Weblate (Ukrainian)

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (222 of 222 strings)

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

* feat: add Ukrainian localization

---------

Co-authored-by: Dan <denqwerta@gmail.com>
Co-authored-by: 刘旭 <34770031+Blinue@users.noreply.github.com>
2023-05-10 08:26:05 +08:00
刘旭
e0b929b678 chore: 更新 version.json 2023-05-07 17:14:32 +08:00
刘旭
09c4e5f8a3 bump: v0.10.2 v0.10.2 2023-05-07 16:50:54 +08:00
刘旭
9fa0704eba chore: 优化清单文件 2023-05-07 16:32:50 +08:00
刘旭
cbfd482930 Merge branch 'main' into dev 2023-05-07 12:04:39 +08:00
刘旭
31659eae5e
feat: Win11 中启用 Segoe UI Variable (#590) 2023-05-06 21:53:00 +08:00
刘旭
4227fa7aa3 chore: 添加葡萄牙语翻译文件(尚未完成) 2023-05-06 21:26:02 +08:00
Weblate (bot)
6c53545402
Translations update from Hosted Weblate (#587)
* Added translation using Weblate (Portuguese)

* Translated using Weblate (Spanish)

Currently translated at 100.0% (222 of 222 strings)

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

* Translated using Weblate (Portuguese)

Currently translated at 17.1% (38 of 222 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (222 of 222 strings)

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

---------

Co-authored-by: Jaqueta <thiagodsimoes@gmail.com>
Co-authored-by: Andrus Diaz German <andrusdiazaleman@gmail.com>
Co-authored-by: NightFox <NightFox@myied.org>
2023-05-06 20:12:06 +08:00
刘旭
0ac73d46ec chore: 启用 Segment Heap
这显著降低了内存占用
2023-05-06 12:16:31 +08:00
Weblate (bot)
695d3d4c15
Translations update from Hosted Weblate (#585)
* Translated using Weblate (Japanese)

Currently translated at 100.0% (222 of 222 strings)

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (222 of 222 strings)

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

---------

Co-authored-by: animeojisan <engine54jp@gmail.com>
Co-authored-by: Serdar Sağlam <teknomobil@msn.com>
2023-05-04 08:49:19 +08:00
刘旭
19d09540e7 feat: 自定义启动参数 3
fixes #575
2023-05-02 17:45:38 +08:00
刘旭
59ceae3a8d feat: 自定义启动参数 2 2023-05-02 17:20:33 +08:00
刘旭
cdfd0125fe
Update README.md 2023-05-02 16:51:02 +08:00
Weblate (bot)
ad86144fda
Translations update from Hosted Weblate (#583)
* Translated using Weblate (Russian)

Currently translated at 100.0% (220 of 220 strings)

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

* Translated using Weblate (Japanese)

Currently translated at 100.0% (220 of 220 strings)

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

* Translated using Weblate (Spanish)

Currently translated at 100.0% (220 of 220 strings)

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

---------

Co-authored-by: NightFox <NightFox@myied.org>
Co-authored-by: engine54jp <engine54jp@gmail.com>
Co-authored-by: Andrus Diaz German <andrusdiazaleman@gmail.com>
2023-05-02 14:52:13 +08:00
刘旭
9153ddf0a9 feat: 自定义启动参数 1 2023-04-30 18:18:31 +08:00
Weblate (bot)
3febe42901
Translations update from Hosted Weblate (#580)
* Added translation using Weblate (Spanish)

* Translated using Weblate (Spanish)

Currently translated at 100.0% (220 of 220 strings)

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

* feat: add Spanish localization

---------

Co-authored-by: Andrus Diaz German <andrusdiazaleman@gmail.com>
Co-authored-by: 刘旭 <34770031+Blinue@users.noreply.github.com>
2023-04-30 16:06:22 +08:00
allcontributors[bot]
c06095e654
docs: add AndrusGerman as a contributor for translation (#581)
* 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>
2023-04-30 15:49:42 +08:00
刘旭
24ca207a81
Update .all-contributorsrc 2023-04-30 15:47:35 +08:00
刘旭
b1cb798e8f Merge branch 'main' into dev 2023-04-30 11:29:26 +08:00
刘旭
601bbc87cc README 2023-04-30 11:13:06 +08:00
刘旭
9cc0c74770
Update README.md 2023-04-30 11:10:27 +08:00
刘旭
478a4efc49 docs: README 2023-04-30 10:58:11 +08:00
刘旭
109161c7c8 docs: README 默认使用英语 2023-04-30 10:56:40 +08:00
刘旭
afa7d8d3da
Update README_EN.md 2023-04-30 10:41:34 +08:00
刘旭
3f8f92b6ce
Update README.md 2023-04-30 10:39:59 +08:00
刘旭
488a555e18
Update README.md 2023-04-30 10:35:41 +08:00
刘旭
8163f4d2fe docs: README 使用 svg 格式的 logo 2023-04-30 10:32:44 +08:00
Weblate (bot)
9b0218c3e2
Translations update from Hosted Weblate (#579)
* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (220 of 220 strings)

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (220 of 220 strings)

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

---------

Co-authored-by: NeilTohno <neil_tohno@live.com>
Co-authored-by: Serdar Sağlam <teknomobil@msn.com>
2023-04-28 16:53:41 +08:00
刘旭
d322ec58dc
Update README_EN.md 2023-04-27 19:18:44 +08:00
刘旭
0640220e67 docs: README 2023-04-27 19:08:52 +08:00
刘旭
ee09d57746 docs: README 2023-04-27 18:46:22 +08:00