Browse Source

Minor font adjustments.

pull/113/head 22.06
Abhishek 2 years ago
parent
commit
f712596eb7
  1. 7
      Clocker/Panel/UI/TimezoneCellView.swift

7
Clocker/Panel/UI/TimezoneCellView.swift

@ -13,6 +13,9 @@ class TimezoneCellView: NSTableCellView {
@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

Loading…
Cancel
Save