Explorar o código

Force light appearance so title bar matches dashboard theme

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 hai 3 semanas
pai
achega
de73344842
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      App for Indeed/AppDelegate.swift

+ 4 - 0
App for Indeed/AppDelegate.swift

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