From f712596eb74b8ff927893eb75bacc852b9b235ea Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 24 Jul 2022 14:44:05 -0400 Subject: [PATCH] Minor font adjustments. --- Clocker/Panel/UI/TimezoneCellView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Clocker/Panel/UI/TimezoneCellView.swift b/Clocker/Panel/UI/TimezoneCellView.swift index acb847f0..79ff3514 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