refactor(settings): 改用常规关于选项卡并统一蓝色强调色

This commit is contained in:
2026-11-03 20:55:11 +08:00
parent 418fc360c6
commit 7bf8cfff19
15 changed files with 108 additions and 487 deletions
+4 -4
View File
@@ -20,12 +20,12 @@ import Foundation
defaults.set("unsupported", forKey: "language")
precondition(LanguagePreferences(defaults: defaults).language == .system)
let bundle = Bundle(path: CommandLine.arguments[1])!
for (language, title, custom) in [("en", "Kymo Settings", "Custom color"),
("zh-Hans", "Kymo 设置", "自选颜色"),
("zh-Hant", "Kymo 設定", "自選顏色")] {
for (language, title, general) in [("en", "Kymo Settings", "General"),
("zh-Hans", "Kymo 设置", "常规"),
("zh-Hant", "Kymo 設定", "一般")] {
let locale = Locale(identifier: language)
precondition(AppLocalization.string("settings.title", locale: locale, bundle: bundle) == title)
precondition(AppLocalization.string("accent.custom", locale: locale, bundle: bundle) == custom)
precondition(AppLocalization.string("settings.general", locale: locale, bundle: bundle) == general)
for (table, key) in [("StatusItem", "status.open"), ("Process", "copyPID"), ("CPUDetails", "cpu.kind.efficiency")] {
let value = AppLocalization.string(key, locale: locale, bundle: bundle, table: table)
precondition(!value.isEmpty && value != key, "Missing built translation: \(language)/\(table)/\(key)")