Parcourir la source

Make launcher title bar render as a floating HUD panel.

Enable full-size transparent title bar treatment so the existing blur and dark overlay flow through the top chrome for a unified glass look.

Made-with: Cursor
huzaifahayat12 il y a 4 mois
Parent
commit
7c9f1e011b
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      google_apps/AppDelegate.swift

+ 5 - 2
google_apps/AppDelegate.swift

@@ -17,8 +17,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {
         guard let window = NSApp.windows.first else { return }
         window.title = "My Apps"
         window.isOpaque = false
-        window.backgroundColor = NSColor.windowBackgroundColor
-        window.titlebarAppearsTransparent = false
+        window.backgroundColor = .clear
+        window.titlebarAppearsTransparent = true
+        window.titleVisibility = .hidden
+        window.styleMask.insert(.fullSizeContentView)
+        window.isMovableByWindowBackground = true
     }
 
     func applicationWillTerminate(_ aNotification: Notification) {