UI: update standard font size

pull/941/head
Ryan Zhao 1 year ago
parent 71449c22b1
commit bae9c3cbc3

@ -149,7 +149,7 @@ final class ConversationTitleView: UIView {
let notificationSettingsLabelString = NSAttributedString( let notificationSettingsLabelString = NSAttributedString(
string: "\u{e067} ", string: "\u{e067} ",
attributes: [ attributes: [
.font: UIFont.ows_elegantIconsFont(10), .font: UIFont.ows_elegantIconsFont(8),
.foregroundColor: textPrimary .foregroundColor: textPrimary
] ]
) )
@ -251,7 +251,7 @@ final class ConversationTitleView: UIView {
with: labelInfos, with: labelInfos,
labelSize: CGSize( labelSize: CGSize(
width: self?.labelCarouselViewWidth.constant ?? 0, width: self?.labelCarouselViewWidth.constant ?? 0,
height: 14 height: 12
), ),
shouldAutoScroll: false shouldAutoScroll: false
) )

@ -157,11 +157,11 @@ final class SessionLabelCarouselView: UIView, UIScrollViewDelegate {
addSubview(arrowLeft) addSubview(arrowLeft)
arrowLeft.pin(.left, to: .left, of: self) arrowLeft.pin(.left, to: .left, of: self)
arrowLeft.center(.vertical, in: self, withInset: -2) arrowLeft.center(.vertical, in: self, withInset: -4)
addSubview(arrowRight) addSubview(arrowRight)
arrowRight.pin(.right, to: .right, of: self) arrowRight.pin(.right, to: .right, of: self)
arrowRight.center(.vertical, in: self, withInset: -2) arrowRight.center(.vertical, in: self, withInset: -4)
addSubview(pageControl) addSubview(pageControl)
pageControl.center(.horizontal, in: self) pageControl.center(.horizontal, in: self)

@ -10,12 +10,12 @@ public final class Values : NSObject {
@objc public static let highOpacity = CGFloat(0.75) @objc public static let highOpacity = CGFloat(0.75)
// MARK: - Font Sizes // MARK: - Font Sizes
@objc public static let miniFontSize = isIPhone5OrSmaller ? CGFloat(9) : CGFloat(11) @objc public static let miniFontSize = isIPhone5OrSmaller ? CGFloat(8) : CGFloat(10)
@objc public static let verySmallFontSize = isIPhone5OrSmaller ? CGFloat(10) : CGFloat(12) @objc public static let verySmallFontSize = isIPhone5OrSmaller ? CGFloat(10) : CGFloat(12)
@objc public static let smallFontSize = isIPhone5OrSmaller ? CGFloat(13) : CGFloat(15) @objc public static let smallFontSize = isIPhone5OrSmaller ? CGFloat(13) : CGFloat(15)
@objc public static let mediumFontSize = isIPhone5OrSmaller ? CGFloat(15) : CGFloat(17) @objc public static let mediumFontSize = isIPhone5OrSmaller ? CGFloat(15) : CGFloat(17)
@objc public static let largeFontSize = isIPhone5OrSmaller ? CGFloat(20) : CGFloat(22) @objc public static let largeFontSize = isIPhone5OrSmaller ? CGFloat(17) : CGFloat(19)
@objc public static let veryLargeFontSize = isIPhone5OrSmaller ? CGFloat(24) : CGFloat(26) @objc public static let veryLargeFontSize = isIPhone5OrSmaller ? CGFloat(22) : CGFloat(24)
@objc public static let massiveFontSize = CGFloat(50) @objc public static let massiveFontSize = CGFloat(50)
// MARK: - Element Sizes // MARK: - Element Sizes

Loading…
Cancel
Save