From 73ba42fa1a65a95e212ac2e589a0f5e9964977f8 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 24 Jan 2021 10:34:27 -0600 Subject: [PATCH] Use the correct font for the preferred sidebar icon size. Fixes #2761 --- Mac/MainWindow/Sidebar/Cell/SidebarCell.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mac/MainWindow/Sidebar/Cell/SidebarCell.swift b/Mac/MainWindow/Sidebar/Cell/SidebarCell.swift index 6355edb35..ae0e2a12d 100644 --- a/Mac/MainWindow/Sidebar/Cell/SidebarCell.swift +++ b/Mac/MainWindow/Sidebar/Cell/SidebarCell.swift @@ -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 }