diff --git a/macos/Sources/App/macOS/AppDelegate.swift b/macos/Sources/App/macOS/AppDelegate.swift index df3a1f4f4..942aecdd4 100644 --- a/macos/Sources/App/macOS/AppDelegate.swift +++ b/macos/Sources/App/macOS/AppDelegate.swift @@ -860,7 +860,12 @@ class AppDelegate: NSObject, } else { GlobalEventTap.shared.disable() } + } + /// Sync the appearance of our app with the theme specified in the config. + private func syncAppearance(config: Ghostty.Config) { + NSApplication.shared.appearance = .init(ghosttyConfig: config) + switch (config.macosIcon) { case .official: self.appIcon = nil @@ -909,11 +914,6 @@ class AppDelegate: NSObject, } } - /// Sync the appearance of our app with the theme specified in the config. - private func syncAppearance(config: Ghostty.Config) { - NSApplication.shared.appearance = .init(ghosttyConfig: config) - } - //MARK: - Restorable State /// We support NSSecureCoding for restorable state. Required as of macOS Sonoma (14) but a good idea anyways.