Merge pull request #1675 from jparise/titlebar-font-default

macos: fall back to the system titlebar font
This commit is contained in:
Mitchell Hashimoto
2024-04-12 09:16:27 -07:00
committed by GitHub

View File

@ -52,11 +52,13 @@ class TerminalWindow: NSWindow {
// Used to set the titlebar font.
var titlebarFont: NSFont? {
didSet {
titlebarTextField?.font = titlebarFont
let font = titlebarFont ?? NSFont.titleBarFont(ofSize: NSFont.systemFontSize)
titlebarTextField?.font = font
tab.attributedTitle = attributedTitle
if let toolbar = toolbar as? TerminalToolbar {
toolbar.titleFont = titlebarFont
toolbar.titleFont = font
}
}
}