File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,16 @@ class AppDelegate: NSObject, NSApplicationDelegate {
6666 }
6767
6868 func applicationDidFinishLaunching( _ notification: Notification ) {
69+ // Re-apply appearance now that NSApp exists.
70+ // AppSettingsManager.shared may already be initialized (by @State in TableProApp),
71+ // but NSApp was nil at that point so NSApp?.appearance was a no-op.
72+ let appearanceSettings = AppSettingsManager . shared. appearance
73+ ThemeEngine . shared. updateAppearanceAndTheme (
74+ mode: appearanceSettings. appearanceMode,
75+ lightThemeId: appearanceSettings. preferredLightThemeId,
76+ darkThemeId: appearanceSettings. preferredDarkThemeId
77+ )
78+
6979 NSWindow . allowsAutomaticWindowTabbing = true
7080 let syncSettings = AppSettingsStorage . shared. loadSync ( )
7181 let passwordSyncExpected = syncSettings. enabled && syncSettings. syncConnections && syncSettings. syncPasswords
You can’t perform that action at this time.
0 commit comments