Use the correct font for the preferred sidebar icon size. Fixes #2761

This commit is contained in:
Maurice Parker 2021-01-24 10:34:27 -06:00
parent ce93d3aadd
commit 73ba42fa1a
1 changed files with 3 additions and 1 deletions

View File

@ -96,11 +96,13 @@ class SidebarCell : NSTableCellView {
}
override func layout() {
if let cellAppearance = cellAppearance {
titleView.font = cellAppearance.textFieldFont
}
resizeSubviews(withOldSize: NSZeroSize)
}
override func resizeSubviews(withOldSize oldSize: NSSize) {
guard let cellAppearance = cellAppearance else {
return
}