소스 검색

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 주 전
부모
커밋
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 {
20 20
         window.titlebarAppearsTransparent = true
21 21
         window.titleVisibility = .hidden
22 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 26
         let targetContent = NSRect(origin: .zero, size: defaultContentSize)
25 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 224
     private func setupLayout() {
225 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 229
         panelsRow.translatesAutoresizingMaskIntoConstraints = false
229 230