Bladeren bron

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 3 weken geleden
bovenliggende
commit
f552cc13e8
2 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 2 0
      App for Indeed/AppDelegate.swift
  2. 2 1
      App for Indeed/Views/DashboardView.swift

+ 2 - 0
App for Indeed/AppDelegate.swift

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

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

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