Bläddra i källkod

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 månader sedan
förälder
incheckning
f552cc13e8
2 ändrade filer med 4 tillägg och 1 borttagningar
  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 {
         window.titlebarAppearsTransparent = true
         window.titlebarAppearsTransparent = true
         window.titleVisibility = .hidden
         window.titleVisibility = .hidden
         window.isMovableByWindowBackground = true
         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 targetContent = NSRect(origin: .zero, size: defaultContentSize)
         let targetFrame = window.frameRect(forContentRect: targetContent)
         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() {
     private func setupLayout() {
         wantsLayer = true
         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
         panelsRow.translatesAutoresizingMaskIntoConstraints = false