|
|
|
@ -77,6 +77,7 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate {
|
|
|
|
|
|
|
|
|
|
if let userFontSize = DataStore.shared().retrieve(key: CLUserFontSizePreference) as? NSNumber, timezones.count > row, let relativeDisplay = DataStore.shared().retrieve(key: CLRelativeDateKey) as? NSNumber { |
|
|
|
|
let model = timezones[row] |
|
|
|
|
let shouldShowSunrise = DataStore.shared().shouldDisplay(.sunrise) |
|
|
|
|
|
|
|
|
|
var rowHeight: Int = userFontSize == 4 ? 60 : 65 |
|
|
|
|
|
|
|
|
@ -84,11 +85,16 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate {
|
|
|
|
|
rowHeight -= 5 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if shouldShowSunrise, model.selectionType == .city { |
|
|
|
|
rowHeight += 8 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if let note = model.note, !note.isEmpty { |
|
|
|
|
return CGFloat(rowHeight + userFontSize.intValue + 25) |
|
|
|
|
rowHeight += userFontSize.intValue + 25 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return CGFloat(rowHeight + (userFontSize.intValue * 2)) |
|
|
|
|
rowHeight += (userFontSize.intValue * 2) |
|
|
|
|
return CGFloat(rowHeight) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return 0 |
|
|
|
|