From 5ca691ec52cb4bb64841b0d85252af762e48c2ca Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期四, 22 八月 2024 14:58:07 +0800 Subject: [PATCH] fix UI --- XQMuse/Root/Other/View/CommonAlertSheetView.swift | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/XQMuse/Root/Other/View/CommonAlertSheetView.swift b/XQMuse/Root/Other/View/CommonAlertSheetView.swift index f00f3be..4ac98fa 100644 --- a/XQMuse/Root/Other/View/CommonAlertSheetView.swift +++ b/XQMuse/Root/Other/View/CommonAlertSheetView.swift @@ -32,7 +32,7 @@ static func show(items:[String],clouse:@escaping (Int)->Void){ let alertView = CommonAlertSheetView.jq_loadNibView() alertView.frame = sceneDelegate?.window?.frame ?? .zero - alertView.cons_tableHei.constant = CGFloat(items.count * 50) + alertView.cons_tableHei.constant = CGFloat(items.count * 56) sceneDelegate?.window?.addSubview(alertView) alertView.cons_viewBottom.constant = 0 alertView.items = items @@ -48,7 +48,7 @@ override func layoutSubviews() { super.layoutSubviews() - let totalH = Double(items.count * 50) + UIDevice.jq_safeEdges.bottom + 50 + let totalH = Double(items.count * 56) + UIDevice.jq_safeEdges.bottom + 56 view_container.jq_addCorners(corner: [.topLeft,.topRight], radius: 20,height: totalH) } @@ -86,7 +86,7 @@ } func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { - return 50 + return 56 } } @@ -100,8 +100,8 @@ selectionStyle = .none label_content = UILabel() label_content.text = "123" - label_content.font = UIFont.systemFont(ofSize: 16, weight: .medium) - label_content.textColor = .black.withAlphaComponent(0.8) + label_content.font = UIFont.systemFont(ofSize: 15, weight: .medium) + label_content.textColor = UIColor(hexString: "#6B6B6B") contentView.addSubview(label_content) label_content.snp.makeConstraints { make in @@ -109,7 +109,7 @@ } let lineView = UIView() - lineView.backgroundColor = UIColor(hexStr: "#DBDBE7") + lineView.backgroundColor = UIColor(hexStr: "#979797").withAlphaComponent(0.05) contentView.addSubview(lineView) lineView.snp.makeConstraints { make in make.left.equalTo(15) -- Gitblit v1.7.1