feat(gui): 添加深色模式支持并优化主题

- 增加了对 macOS、Windows 和 Linux 深色模式的检测- 添加了多个 FlatLaf 主题支持
- 优化了窗口主题设置逻辑,根据系统模式自动选择深浅主题
-调整了侧边栏、卡片背景和文本颜色等样式,以适应不同主题
- 更新了语言文件,增加了新主题的翻译
This commit is contained in:
tzdwindows 7
2025-08-14 15:23:25 +08:00
parent 9136ad8827
commit 5da71f05e7
7 changed files with 222 additions and 34 deletions

View File

@@ -1,3 +1,3 @@
#Current Loaded Language
#Tue Aug 12 21:57:11 CST 2025
#Thu Aug 14 15:17:57 CST 2025
loadedLanguage=system\:zh_CN

View File

@@ -1,9 +1,34 @@
default_theme.system.topicName=\u9ED8\u8BA4\u4E3B\u9898
default_theme.default.tip=\u9ED8\u8BA4\u7684\u4E3B\u9898
metal_theme.system.topicName=Metal\u98CE\u683C
metal_theme.default.tip=Metal\u98CE\u683C
motif_theme.system.topicName=Motif\u98CE\u683C
motif_theme.default.tip=Motif\u98CE\u683C
# \u9ED8\u8BA4\u4E3B\u9898
default_theme.system.topicName=\u7CFB\u7EDF\u9ED8\u8BA4\u4E3B\u9898
default_theme.default.tip=\u4F7F\u7528\u64CD\u4F5C\u7CFB\u7EDF\u9ED8\u8BA4\u5916\u89C2
# Metal \u4E3B\u9898
metal_theme.system.topicName=Metal \u4E3B\u9898 (Java \u7ECF\u5178)
metal_theme.default.tip=Java \u9ED8\u8BA4\u7684 Metal \u98CE\u683C\u754C\u9762
# Motif \u4E3B\u9898
motif_theme.system.topicName=Motif \u4E3B\u9898 (UNIX \u98CE\u683C)
motif_theme.default.tip=\u4F20\u7EDF\u7684 UNIX Motif \u5916\u89C2
# FlatLaf \u4E3B\u9898
flatLight_theme.system.topicName=Flat Light (\u6D45\u8272)
flatLight_theme.default.tip=\u73B0\u4EE3\u5316\u6D45\u8272\u4E3B\u9898\uFF0C\u7B80\u6D01\u660E\u4EAE
flatDark_theme.system.topicName=Flat Dark (\u6DF1\u8272)
flatDark_theme.default.tip=\u73B0\u4EE3\u5316\u6DF1\u8272\u4E3B\u9898\uFF0C\u62A4\u773C\u8212\u9002
flatIntelliJ_theme.system.topicName=IntelliJ \u6D45\u8272
flatIntelliJ_theme.default.tip=\u7C7B\u4F3C IntelliJ IDEA \u7684\u6D45\u8272\u4E3B\u9898
flatDarcula_theme.system.topicName=Darcula \u6DF1\u8272
flatDarcula_theme.default.tip=\u7C7B\u4F3C IntelliJ IDEA \u7684 Darcula \u6DF1\u8272\u4E3B\u9898
flatMacLight_theme.system.topicName=macOS \u6D45\u8272
flatMacLight_theme.default.tip=\u7C7B\u4F3C macOS \u7684\u6D45\u8272\u98CE\u683C
flatMacDark_theme.system.topicName=macOS \u6DF1\u8272
flatMacDark_theme.default.tip=\u7C7B\u4F3C macOS \u7684\u6DF1\u8272\u6A21\u5F0F\uFF0C\u4F18\u96C5\u73B0\u4EE3
flatLightLaf_theme.system.topicName=flatLightLaf\u98CE\u683C
flatLightLaf_theme.default.tip=flatLightLaf\u98CE\u683C