mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
Merge pull request #1675 from jparise/titlebar-font-default
macos: fall back to the system titlebar font
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user