Просмотр исходного кода

Force light appearance so title bar matches dashboard theme

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 недель назад: 3
Родитель
Сommit
de73344842
1 измененных файлов с 4 добавлено и 0 удалено
  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 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 20
     func applicationDidFinishLaunching(_ aNotification: Notification) {
17 21
         NSApp.activate(ignoringOtherApps: true)