From 695c696e7f894159cb1ff8bb89fec861db2ce1f8 Mon Sep 17 00:00:00 2001
From: aL1CesT <63580499+aL1CesT@users.noreply.github.com>
Date: Mon, 9 Nov 2026 04:17:33 +0800
Subject: [PATCH] =?UTF-8?q?feat(desktop):=20=E8=A1=A5=E5=85=A8=E4=B8=AD?=
=?UTF-8?q?=E8=8B=B1=E5=8F=8C=E8=AF=AD=EF=BC=8C=E7=BB=9F=E4=B8=80=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E6=8E=92=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
资源文件里本来就有 70 个 key,中英各一套,但只有 7 个真正被引用:DataGrid 的
列头。视图里其余全是硬编码英文(光 HomePage 就有 15 处、SettingsPage 7 处),
所以选中文之后大部分界面仍是英文。
现在两个 resx 各有 154 个 key,键集合完全一致,视图里每个字符串都走
{loc:Localize} 或本地化服务。在设置页切换语言会更新整个窗口,包括写在
view model 里的那些字符串。
按钮渲染也整理了一遍,因为 Fluent 的默认度量放在中文旁边显得参差:
- 全局 Button 样式统一 FontSize 13、Padding 16,6、MinHeight 34、CornerRadius 6
并居中,不同页面的按钮高度一致。Button.accent 给主操作加字重。
- 省略号改用中文的 U+2026,而不是三个 ASCII 点 —— 后者落在基线上,跟在汉字
后面会留下明显的空隙。
- MinWidth 原先散落五个值(70/80/100/120/150),收敛成三个(88/108/132),
一排按钮能对齐。
- Button.icon 覆盖透明的箭头/详情按钮,含 hover 与置灰禁用态。
App.axaml 新增图标:ChevronUp、ChevronDown、ChevronRight、Alert、Account。
---
src/ZonyLrcTools.Desktop/App.axaml | 51 ++++
.../Resources/UIStrings.en-US.resx | 265 +++++++++++++++++-
.../Resources/UIStrings.resx | 265 +++++++++++++++++-
3 files changed, 569 insertions(+), 12 deletions(-)
diff --git a/src/ZonyLrcTools.Desktop/App.axaml b/src/ZonyLrcTools.Desktop/App.axaml
index afe9cbc..115fcdb 100644
--- a/src/ZonyLrcTools.Desktop/App.axaml
+++ b/src/ZonyLrcTools.Desktop/App.axaml
@@ -6,6 +6,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -19,6 +63,13 @@
M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5.41L19.04 4L17.24 5.79L18.66 7.21M13 1H11V4H13M6.76 5.79L4.96 4L3.55 5.41L5.34 7.21L6.76 5.79M1 13H4V11H1M13 20H11V23H13Z
M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z
M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z
+ M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z
+ M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,16.5L6.5,12L7.91,10.59L11,13.67L16.59,8.09L18,9.5L11,16.5Z
+ M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z
+ M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z
+ M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z
+ M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z
+ M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z
diff --git a/src/ZonyLrcTools.Desktop/Resources/UIStrings.en-US.resx b/src/ZonyLrcTools.Desktop/Resources/UIStrings.en-US.resx
index 7af86e1..4f99cc1 100644
--- a/src/ZonyLrcTools.Desktop/Resources/UIStrings.en-US.resx
+++ b/src/ZonyLrcTools.Desktop/Resources/UIStrings.en-US.resx
@@ -79,10 +79,10 @@
Music Folder
- Select a folder containing music files...
+ Select a folder containing music files…
- Browse...
+ Browse…
Parallel Tasks
@@ -100,10 +100,10 @@
Idle
- Scanning files...
+ Scanning files…
- Downloading lyrics...
+ Downloading lyrics…
Download Complete
@@ -134,10 +134,10 @@
Music Folder
- Select a folder containing music files...
+ Select a folder containing music files…
- Browse...
+ Browse…
Parallel Tasks
@@ -258,4 +258,257 @@
No music files found in the selected folder.
+
+
+ Music Decryption
+
+
+ Music Decryption
+
+
+ Convert encrypted music files (ncm / qmc / kgm / kgg / kwm) into playable formats
+
+
+ Select encrypted music files…
+
+
+ Add Files…
+
+
+ Parallel:
+
+
+ Start Decrypt
+
+
+ Stop
+
+
+ No files yet, add files to start decrypting
+
+
+ Clear
+
+
+ Files
+
+
+ File Name
+
+
+ Output
+
+
+ Basic Settings
+
+
+ Advanced Settings
+
+
+ Show advanced settings
+
+
+ Lyrics Settings
+
+
+ Enable translation lyrics
+
+
+ One-line mode (original + translation on the same line)
+
+
+ Only output translation lyrics
+
+
+ Skip existing lyrics files
+
+
+ File Encoding:
+
+
+ Line Break:
+
+
+ Output romanized lyrics
+
+
+ Block Words
+
+
+ Enable block word filtering
+
+
+ Block word file path:
+
+
+ Tag Providers
+
+
+ Priority
+
+
+ Configuration File
+
+
+ Settings saved
+
+
+ Failed to save settings
+
+
+ Restart the application for proxy changes to take effect.
+
+
+ Reset all settings to their default values?
+
+
+ Quick Actions
+
+
+ Decrypt Music
+
+
+ Supports NetEase, QQ Music, KuGou and KuWo lyric sources
+
+
+ Parallel downloads with automatic overwrite protection
+
+
+ Multiple file encodings and translated lyrics output
+
+
+ Runs on Windows, Linux and macOS
+
+
+ Get Started
+
+
+ Source
+
+
+ Local Folder
+
+
+ CSV File
+
+
+ NetEase Playlist
+
+
+ Scan
+
+
+ CSV File
+
+
+ Select a CSV file…
+
+
+ Choose…
+
+
+ Playlist ID
+
+
+ e.g. 7224428149 (separate multiple ids with ;)
+
+
+ Save To
+
+
+ Where the .lrc files should be written
+
+
+ Choose…
+
+
+ Sign in to NetEase Cloud Music
+
+
+ Scan the QR code with the NetEase Cloud Music app on your phone.
+
+
+ Waiting for you to scan…
+
+
+ Scanned, please confirm on your phone.
+
+
+ Signed in.
+
+
+ Features
+
+
+ Version
+
+
+ Batch download lyrics for your music files
+
+
+ Fetch album artwork for your collection
+
+
+ Decrypt protected music files
+
+
+ Move up
+
+
+ Move down
+
+
+ kgg decryption needs the KuGou database KGMusicV3.db (the key is only written when KuGou downloaded that song)
+
+
+ Choose Database…
+
+
+ {0} decryption keys loaded
+
+
+ KuGou database not found, kgg files cannot be decrypted
+
+
+ Locate Database…
+
+
+ KuGou database missing
+
+
+ View details
+
+
+ Decryption failure
+
+
+ The list order is the search order. Use the arrows on the right to change which source is tried first.
+
+
+ Sign out
+
+
+ Forget the saved session so the next playlist scan asks for a QR login again.
+
+
+ Signed out. The next playlist scan will ask for a QR login.
+
+
+ Sign in…
+
+
+ Scan a QR code now instead of waiting until the next scan.
+
+
+ Signed in. Scanning a playlist reuses this session.
+
+
+ Not signed in. Scanning a playlist will show a QR code.
+
+
+ Account
+
+
+ Copy
+
diff --git a/src/ZonyLrcTools.Desktop/Resources/UIStrings.resx b/src/ZonyLrcTools.Desktop/Resources/UIStrings.resx
index b07f28e..1431be1 100644
--- a/src/ZonyLrcTools.Desktop/Resources/UIStrings.resx
+++ b/src/ZonyLrcTools.Desktop/Resources/UIStrings.resx
@@ -79,10 +79,10 @@
音乐文件夹
- 请选择包含音乐文件的目录...
+ 请选择包含音乐文件的目录…
- 浏览...
+ 浏览…
并行任务数
@@ -100,10 +100,10 @@
等待中
- 正在扫描文件...
+ 正在扫描文件…
- 正在下载歌词...
+ 正在下载歌词…
下载完成
@@ -134,10 +134,10 @@
音乐文件夹
- 请选择包含音乐文件的目录...
+ 请选择包含音乐文件的目录…
- 浏览...
+ 浏览…
并行任务数
@@ -258,4 +258,257 @@
在所选文件夹中没有找到任何音乐文件。
+
+
+ 音乐解密
+
+
+ 音乐解密
+
+
+ 将加密的音乐文件(ncm / qmc / kgm / kgg / kwm)转换为可播放格式
+
+
+ 请选择要解密的加密音乐文件…
+
+
+ 添加文件…
+
+
+ 并行数:
+
+
+ 开始解密
+
+
+ 停止
+
+
+ 暂无文件,请添加文件后开始解密
+
+
+ 清空
+
+
+ 文件
+
+
+ 文件名
+
+
+ 输出路径
+
+
+ 基础设置
+
+
+ 高级设置
+
+
+ 显示高级设置
+
+
+ 歌词设置
+
+
+ 启用翻译歌词
+
+
+ 单行模式(原文与翻译在同一行)
+
+
+ 只输出翻译歌词
+
+
+ 跳过已存在的歌词文件
+
+
+ 文件编码:
+
+
+ 换行符:
+
+
+ 输出罗马音歌词
+
+
+ 屏蔽词
+
+
+ 启用屏蔽词过滤
+
+
+ 屏蔽词文件路径:
+
+
+ 标签源
+
+
+ 优先级
+
+
+ 配置文件位置
+
+
+ 设置已保存
+
+
+ 设置保存失败
+
+
+ 修改代理设置后需要重启程序才能生效。
+
+
+ 确定要将所有设置恢复为默认值吗?
+
+
+ 快速操作
+
+
+ 解密音乐
+
+
+ 支持网易云、QQ音乐、酷狗、酷我四大歌词源
+
+
+ 多线程并行下载,自动规避覆盖
+
+
+ 支持多种文件编码与翻译歌词输出
+
+
+ 跨平台运行,支持 Windows、Linux 与 macOS
+
+
+ 开始使用
+
+
+ 来源
+
+
+ 本地文件夹
+
+
+ CSV 文件
+
+
+ 网易云歌单
+
+
+ 解析
+
+
+ CSV 文件
+
+
+ 请选择 CSV 文件…
+
+
+ 选择…
+
+
+ 歌单 ID
+
+
+ 例如 7224428149(多个歌单用分号分隔)
+
+
+ 保存到
+
+
+ 歌词文件的输出目录
+
+
+ 选择…
+
+
+ 登录网易云音乐
+
+
+ 请使用手机上的网易云音乐 App 扫描二维码。
+
+
+ 等待扫码…
+
+
+ 已扫码,请在手机上确认。
+
+
+ 登录成功。
+
+
+ 功能特性
+
+
+ 版本
+
+
+ 批量下载音乐文件的歌词
+
+
+ 为音乐库获取专辑封面
+
+
+ 解密受保护的音乐文件
+
+
+ 上移
+
+
+ 下移
+
+
+ kgg 解密需要酷狗数据库 KGMusicV3.db(酷狗下载过该歌曲才会写入密钥)
+
+
+ 选择数据库文件…
+
+
+ 已读取 {0} 个解密密钥
+
+
+ 未找到酷狗数据库,kgg 文件将无法解密
+
+
+ 指定数据库…
+
+
+ 缺少酷狗数据库
+
+
+ 查看详情
+
+
+ 解密失败原因
+
+
+ 列表顺序即搜索顺序,用右侧箭头调整优先尝试哪一家。
+
+
+ 退出登录
+
+
+ 清除已保存的登录状态,下次解析歌单需要重新扫码。
+
+
+ 已退出登录,下次解析歌单需要重新扫码。
+
+
+ 登录…
+
+
+ 立即扫码登录,不必等到下次解析歌单。
+
+
+ 已登录,解析歌单会直接使用这个会话。
+
+
+ 未登录,解析歌单时会弹出二维码。
+
+
+ 账号状态
+
+
+ 复制
+