mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +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.
|
// Used to set the titlebar font.
|
||||||
var titlebarFont: NSFont? {
|
var titlebarFont: NSFont? {
|
||||||
didSet {
|
didSet {
|
||||||
titlebarTextField?.font = titlebarFont
|
let font = titlebarFont ?? NSFont.titleBarFont(ofSize: NSFont.systemFontSize)
|
||||||
|
|
||||||
|
titlebarTextField?.font = font
|
||||||
tab.attributedTitle = attributedTitle
|
tab.attributedTitle = attributedTitle
|
||||||
|
|
||||||
if let toolbar = toolbar as? TerminalToolbar {
|
if let toolbar = toolbar as? TerminalToolbar {
|
||||||
toolbar.titleFont = titlebarFont
|
toolbar.titleFont = font
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user