소스 검색

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 달 전
부모
커밋
f552cc13e8
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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.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