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

Force light appearance so title bar matches dashboard theme

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 месяцев назад
Родитель
С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 {
 
 
     private let minimumWindowSize = NSSize(width: 1024, height: 700)
     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) {
     func applicationDidFinishLaunching(_ aNotification: Notification) {
         NSApp.activate(ignoringOtherApps: true)
         NSApp.activate(ignoringOtherApps: true)