新增ai修图
This commit is contained in:
@ -21,6 +21,11 @@ final class WiredTransferSettingChipButton: UIButton {
|
||||
/// 当前展示的标题文案。
|
||||
private(set) var titleText: String = ""
|
||||
|
||||
/// 当前值的展示颜色,供状态测试确认不可交互时仍保持清晰。
|
||||
var displayedTitleColor: UIColor? {
|
||||
titleLabelView.textColor
|
||||
}
|
||||
|
||||
/// 创建设置 chip 按钮。
|
||||
/// - Parameter showsChevron: 是否展示下拉箭头,默认不展示。
|
||||
init(showsChevron: Bool = false) {
|
||||
@ -49,13 +54,14 @@ final class WiredTransferSettingChipButton: UIButton {
|
||||
layer.borderColor = AppColor.border.cgColor
|
||||
|
||||
titleLabelView.font = .systemFont(ofSize: 11)
|
||||
titleLabelView.textColor = AppColor.textTertiary
|
||||
// 当前设置值即使不可点击也代表已经生效,使用主文字色避免呈现为禁用状态。
|
||||
titleLabelView.textColor = AppColor.textPrimary
|
||||
titleLabelView.lineBreakMode = .byTruncatingTail
|
||||
titleLabelView.isUserInteractionEnabled = false
|
||||
|
||||
chevronView.image = UIImage(systemName: "chevron.down")?
|
||||
.withConfiguration(UIImage.SymbolConfiguration(pointSize: 13, weight: .semibold))
|
||||
chevronView.tintColor = AppColor.textTertiary
|
||||
chevronView.tintColor = AppColor.textSecondary
|
||||
chevronView.contentMode = .scaleAspectFit
|
||||
chevronView.isUserInteractionEnabled = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user