Browse Source

Remove outer white halo around dashboard chrome frame.

Match the root view and window backgrounds to chrome grey so the inset margin no longer reads as an extra white border outside the grey frame.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 tháng trước cách đây
mục cha
commit
f552cc13e8

+ 2 - 0
App for Indeed/AppDelegate.swift

@@ -20,6 +20,8 @@ enum AppWindowConfiguration {
         window.titlebarAppearsTransparent = true
         window.titleVisibility = .hidden
         window.isMovableByWindowBackground = true
+        // Same as `DashboardView` chrome — avoids a white halo outside the grey frame with fullSizeContentView.
+        window.backgroundColor = NSColor(srgbRed: 247 / 255, green: 247 / 255, blue: 247 / 255, alpha: 1)
 
         let targetContent = NSRect(origin: .zero, size: defaultContentSize)
         let targetFrame = window.frameRect(forContentRect: targetContent)

+ 2 - 1
App for Indeed/Views/DashboardView.swift

@@ -223,7 +223,8 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
 
     private func setupLayout() {
         wantsLayer = true
-        layer?.backgroundColor = Theme.pageBackground.cgColor
+        // Match chrome so the outer margin (inset chrome container) is grey, not an extra white ring.
+        layer?.backgroundColor = Theme.chromeBackground.cgColor
 
         panelsRow.translatesAutoresizingMaskIntoConstraints = false