diff --git a/Clocker/Panel/UI/TimezoneCellView.swift b/Clocker/Panel/UI/TimezoneCellView.swift index acb847f..79ff351 100644 --- a/Clocker/Panel/UI/TimezoneCellView.swift +++ b/Clocker/Panel/UI/TimezoneCellView.swift @@ -12,6 +12,9 @@ class TimezoneCellView: NSTableCellView { @IBOutlet var extraOptions: NSButton! @IBOutlet var sunriseImage: NSImageView! @IBOutlet var currentLocationIndicator: NSImageView! + + static private let minimumFontSizeForTime: Int = 11 + static private let minimumFontSizeForLabel: Int = 10 var rowNumber: NSInteger = -1 var isPopoverDisplayed: Bool = false @@ -134,8 +137,8 @@ class TimezoneCellView: NSTableCellView { return } - let newFontSize = CGFloat(11 + (userFontSize.intValue * 1)) - let newTimeFontSize = CGFloat(12 + (userFontSize.intValue * 2)) + let newFontSize = CGFloat(TimezoneCellView.minimumFontSizeForLabel + (userFontSize.intValue * 1)) + let newTimeFontSize = CGFloat(TimezoneCellView.minimumFontSizeForTime + (userFontSize.intValue * 2)) let fontManager = NSFontManager.shared