Browse Source

Adjusted height!

pull/92/head
Abhishek 5 years ago
parent
commit
286b18f633
  1. 2
      Clocker/Panel/ParentPanelController.swift
  2. 4
      Clocker/Panel/UI/TimezoneCellView.swift
  3. 4
      Clocker/Panel/UI/TimezoneDataSource.swift

2
Clocker/Panel/ParentPanelController.swift

@ -396,7 +396,7 @@ class ParentPanelController: NSWindowController {
} }
if let userFontSize = DataStore.shared().retrieve(key: CLUserFontSizePreference) as? NSNumber { if let userFontSize = DataStore.shared().retrieve(key: CLUserFontSizePreference) as? NSNumber {
scrollViewHeight.constant = totalHeight + CGFloat(userFontSize.intValue * 3) + 5.0 scrollViewHeight.constant = totalHeight + CGFloat(userFontSize.intValue * 2) + 5.0
} }
if DataStore.shared().shouldDisplay(ViewType.upcomingEventView) { if DataStore.shared().shouldDisplay(ViewType.upcomingEventView) {

4
Clocker/Panel/UI/TimezoneCellView.swift

@ -86,8 +86,8 @@ class TimezoneCellView: NSTableCellView {
return return
} }
let newFontSize = CGFloat(13 + (userFontSize.intValue * 2)) let newFontSize = CGFloat(13 + (userFontSize.intValue * 1))
let newTimeFontSize = CGFloat(13 + (userFontSize.intValue * 3)) let newTimeFontSize = CGFloat(13 + (userFontSize.intValue * 2))
let fontManager = NSFontManager.shared let fontManager = NSFontManager.shared

4
Clocker/Panel/UI/TimezoneDataSource.swift

@ -79,10 +79,10 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate {
let model = timezones[row] let model = timezones[row]
if let note = model.note, !note.isEmpty { if let note = model.note, !note.isEmpty {
return CGFloat(65 + userFontSize.floatValue + 30) return CGFloat(65 + userFontSize.floatValue + 25)
} }
return CGFloat(65 + (userFontSize.intValue * 3)) return CGFloat(65 + (userFontSize.intValue * 2))
} }
return 0 return 0

Loading…
Cancel
Save