Prechádzať zdrojové kódy

Force light appearance so title bar matches dashboard theme

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 mesiacov pred
rodič
commit
de73344842
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      App for Indeed/AppDelegate.swift

+ 4 - 0
App for Indeed/AppDelegate.swift

@@ -12,6 +12,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
 
     private let minimumWindowSize = NSSize(width: 1024, height: 700)
 
+    func applicationWillFinishLaunching(_ notification: Notification) {
+        // Dashboard is light-themed; without this, a Dark Mode Mac paints a dark title bar.
+        NSApp.appearance = NSAppearance(named: .aqua)
+    }
 
     func applicationDidFinishLaunching(_ aNotification: Notification) {
         NSApp.activate(ignoringOtherApps: true)