Browse Source

Slightly smaller window size!

pull/92/head
Abhishek 5 years ago
parent
commit
7d431cfa58
  1. 12
      Clocker/Panel/ParentPanelController.swift
  2. 4
      Clocker/Panel/UI/TimezoneCellView.swift

12
Clocker/Panel/ParentPanelController.swift

@ -355,22 +355,22 @@ class ParentPanelController: NSWindowController {
var newHeight = currentHeight
if newHeight <= 68.0 {
newHeight = 69.0
newHeight = 68.0
}
if newHeight >= 68.0 {
newHeight = 75.0
newHeight = 72.0
if let note = object?.note, note.isEmpty == false {
newHeight += 30
newHeight += 25
}
}
if newHeight >= 88.0 {
// Set it to 95 expicity in case the row height is calculated be higher.
newHeight = 95.0
// Set it to 90 expicity in case the row height is calculated be higher.
newHeight = 90.0
if let note = object?.note, note.isEmpty {
newHeight -= 30.0
newHeight -= 25.0
}
}

4
Clocker/Panel/UI/TimezoneCellView.swift

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

Loading…
Cancel
Save