Skip to content

Commit

Permalink
Minor font adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Jul 24, 2022
1 parent 5af3e88 commit f712596
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Clocker/Panel/UI/TimezoneCellView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f712596

Please sign in to comment.