mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
适配无障碍
This commit is contained in:
parent
f1127df001
commit
91bc905628
@ -668,6 +668,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"close" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Close"
|
||||
}
|
||||
},
|
||||
"ja" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "閉じる"
|
||||
}
|
||||
},
|
||||
"tr" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Kapat"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "关闭"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"confirm" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
@ -1363,6 +1392,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"demo" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Demo"
|
||||
}
|
||||
},
|
||||
"ja" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "デモ"
|
||||
}
|
||||
},
|
||||
"tr" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Demo"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "演示"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"DeploymentDocuments" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
@ -3883,6 +3941,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"toggle" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Toggle"
|
||||
}
|
||||
},
|
||||
"ja" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "表示切替"
|
||||
}
|
||||
},
|
||||
"tr" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Görünümü Değiştir"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "切换"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"unknown" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
|
||||
@ -19,6 +19,7 @@ class HomeViewController: BaseViewController<HomeViewModel> {
|
||||
btn.setImage(Icon.add, for: .normal)
|
||||
btn.imageView?.tintColor = BKColor.grey.darken4
|
||||
btn.frame = CGRect(x: 0, y: 0, width: 40, height: 40)
|
||||
btn.accessibilityIdentifier = NSLocalizedString("AddServer")
|
||||
return btn
|
||||
}()
|
||||
|
||||
@ -27,6 +28,7 @@ class HomeViewController: BaseViewController<HomeViewModel> {
|
||||
btn.setImage(UIImage(named: "baseline_filter_drama_black_24pt"), for: .normal)
|
||||
btn.imageView?.tintColor = BKColor.grey.darken4
|
||||
btn.frame = CGRect(x: 0, y: 0, width: 40, height: 40)
|
||||
btn.accessibilityIdentifier = NSLocalizedString("serverList")
|
||||
return btn
|
||||
}()
|
||||
|
||||
|
||||
@ -20,6 +20,7 @@ class NewServerViewController: BaseViewController<NewServerViewModel> {
|
||||
button.frame = CGRect(x: 0, y: 0, width: 24, height: 24)
|
||||
button.hitTestSlop = UIEdgeInsets(top: -10, left: -10, bottom: -10, right: -10)
|
||||
button.tintColor = BKColor.grey.darken3
|
||||
button.isAccessibilityElement = false
|
||||
return button
|
||||
}()
|
||||
|
||||
|
||||
@ -40,6 +40,7 @@ class ServerListViewController: BaseViewController<ServerListViewModel> {
|
||||
closeButton.frame = CGRect(x: 0, y: 0, width: 40, height: 40)
|
||||
closeButton.hitTestSlop = UIEdgeInsets(top: -10, left: -10, bottom: -10, right: -10)
|
||||
closeButton.tintColor = BKColor.grey.darken4
|
||||
closeButton.accessibilityLabel = NSLocalizedString("close")
|
||||
return closeButton
|
||||
}()
|
||||
|
||||
|
||||
@ -10,8 +10,17 @@ import Material
|
||||
import UIKit
|
||||
|
||||
class PreviewCardCell: BaseTableViewCell<PreviewCardCellViewModel> {
|
||||
let previewButton = IconButton(image: Icon.cm.skipForward, tintColor: BKColor.grey.base)
|
||||
let copyButton = IconButton(image: UIImage(named: "baseline_file_copy_white_24pt"), tintColor: BKColor.grey.base)
|
||||
let previewButton: IconButton = {
|
||||
let button = IconButton(image: Icon.cm.skipForward, tintColor: BKColor.grey.base)
|
||||
button.accessibilityLabel = NSLocalizedString("demo")
|
||||
return button
|
||||
}()
|
||||
|
||||
let copyButton: IconButton = {
|
||||
let button = IconButton(image: UIImage(named: "baseline_file_copy_white_24pt"), tintColor: BKColor.grey.base)
|
||||
button.accessibilityLabel = NSLocalizedString("copy")
|
||||
return button
|
||||
}()
|
||||
|
||||
let titleLabel: UILabel = {
|
||||
let label = UILabel()
|
||||
|
||||
@ -11,7 +11,12 @@ import Material
|
||||
import UIKit
|
||||
|
||||
class SoundCell: BaseTableViewCell<SoundCellViewModel> {
|
||||
let copyButton = IconButton(image: UIImage(named: "baseline_file_copy_white_24pt"), tintColor: BKColor.grey.base)
|
||||
let copyButton: IconButton = {
|
||||
let button = IconButton(image: UIImage(named: "baseline_file_copy_white_24pt"), tintColor: BKColor.grey.base)
|
||||
button.accessibilityLabel = NSLocalizedString("copy")
|
||||
return button
|
||||
}()
|
||||
|
||||
let nameLabel: UILabel = {
|
||||
let label = UILabel()
|
||||
label.fontSize = 14
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user