瀏覽代碼

Merge pull request #971 from deltachat/tweak-font-sizes

tweak font sizes
cyBerta 4 年之前
父節點
當前提交
208acb96a5
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift
  2. 2 1
      deltachat-ios/Chat/Views/QuoteView.swift

+ 1 - 1
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -111,7 +111,7 @@ public class BaseMessageCell: UITableViewCell {
     lazy var bottomLabel: PaddingTextView = {
         let label = PaddingTextView()
         label.translatesAutoresizingMaskIntoConstraints = false
-        label.font = UIFont.preferredFont(for: .caption1, weight: .medium)
+        label.font = UIFont.preferredFont(for: .caption1, weight: .regular)
         label.setContentHuggingPriority(.defaultHigh, for: .horizontal)
         label.setContentCompressionResistancePriority(.defaultHigh, for: .horizontal)
         label.layer.cornerRadius = 4

+ 2 - 1
deltachat-ios/Chat/Views/QuoteView.swift

@@ -15,13 +15,14 @@ public class QuoteView: UIView {
         let view = UILabel()
         view.font = UIFont.preferredFont(for: .subheadline, weight: .regular)
         view.textColor = DcColors.grayTextColor
+        view.numberOfLines = 3
         view.translatesAutoresizingMaskIntoConstraints = false
         return view
     }()
 
     public lazy var senderTitle: UILabel = {
         let view = UILabel()
-        view.font = UIFont.preferredFont(for: .subheadline, weight: .semibold)
+        view.font = UIFont.preferredFont(for: .caption1, weight: .semibold)
         view.translatesAutoresizingMaskIntoConstraints = false
         return view
     }()