完善账号切换展示、首页菜单图标与有线传输设置 chip。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-15 14:59:31 +08:00
parent 5eef31b8da
commit ce6de76055
18 changed files with 321 additions and 130 deletions

View File

@ -186,7 +186,7 @@ private final class AccountSelectionCell: UITableViewCell {
private let avatarPlaceholderLabel = UILabel()
private let titleLabel = UILabel()
private let subtitleLabel = UILabel()
private let phoneLabel = UILabel()
private let nameLabel = UILabel()
private let typeTag = UILabel()
private let currentTag = UILabel()
private let checkmark = UIImageView()
@ -214,8 +214,8 @@ private final class AccountSelectionCell: UITableViewCell {
subtitleLabel.font = .systemFont(ofSize: 13)
subtitleLabel.textColor = AppColor.text666
phoneLabel.font = .systemFont(ofSize: 12)
phoneLabel.textColor = UIColor(hex: 0x9AA1AA)
nameLabel.font = .systemFont(ofSize: 12)
nameLabel.textColor = UIColor(hex: 0x9AA1AA)
typeTag.font = .systemFont(ofSize: 11, weight: .semibold)
typeTag.textAlignment = .center
@ -239,7 +239,7 @@ private final class AccountSelectionCell: UITableViewCell {
avatarView.addSubview(avatarPlaceholderLabel)
card.addSubview(titleLabel)
card.addSubview(subtitleLabel)
card.addSubview(phoneLabel)
card.addSubview(nameLabel)
card.addSubview(typeTag)
card.addSubview(currentTag)
card.addSubview(checkmark)
@ -277,7 +277,7 @@ private final class AccountSelectionCell: UITableViewCell {
make.trailing.equalTo(checkmark.snp.leading).offset(-8)
}
phoneLabel.snp.makeConstraints { make in
nameLabel.snp.makeConstraints { make in
make.top.equalTo(subtitleLabel.snp.bottom).offset(4)
make.leading.equalTo(titleLabel)
make.bottom.equalToSuperview().inset(16)
@ -304,8 +304,8 @@ private final class AccountSelectionCell: UITableViewCell {
titleLabel.text = account.title.isEmpty ? account.accountTypeLabel : account.title
subtitleLabel.text = account.subtitle
subtitleLabel.isHidden = account.subtitle.isEmpty
phoneLabel.text = account.phone
phoneLabel.isHidden = account.phone.isEmpty
nameLabel.text = account.realName
nameLabel.isHidden = account.realName.isEmpty
currentTag.isHidden = !account.isCurrent
let avatarPlaceholderColor: UIColor