大小写切换按钮改为 A a 文字显示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-20 21:30:42 +08:00
parent 6e80a5986a
commit 98a7d157f4
@@ -37,8 +37,7 @@ final class QuizViewController: UIViewController {
action: nil action: nil
) )
private lazy var caseToggleItem = UIBarButtonItem( private lazy var caseToggleItem = UIBarButtonItem(
image: UIImage(systemName: "textformat"), title: "A a", style: .plain, target: self, action: #selector(toggleCase)
style: .plain, target: self, action: #selector(toggleCase)
) )
private var current: QuizQuestion? { private var current: QuizQuestion? {
@@ -418,7 +417,8 @@ final class QuizViewController: UIViewController {
} }
private func updateCaseButton() { private func updateCaseButton() {
caseToggleItem.tintColor = isUppercase ? Theme.Color.accent : .tertiaryLabel caseToggleItem.title = isUppercase ? "A A" : "A a"
caseToggleItem.tintColor = .label
} }
@objc private func speakCurrentWord() { @objc private func speakCurrentWord() {