소스 검색

Eliminate residual left-edge spacing in the home shell.

Make the chrome column conform to the shell corner radius and pin the shell flush to its container so sidebar corners render cleanly without visual gaps.

Made-with: Cursor
huzaifahayat12 6 일 전
부모
커밋
73b9260a4c
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 4
      zoom_app/ViewController.swift

+ 7 - 4
zoom_app/ViewController.swift

@@ -669,6 +669,9 @@ class ViewController: NSViewController {
669 669
         let chromeColumn = NSView()
670 670
         chromeColumn.wantsLayer = true
671 671
         chromeColumn.layer?.backgroundColor = chromeUnifiedBackground.cgColor
672
+        chromeColumn.layer?.cornerRadius = appShellCornerRadius
673
+        chromeColumn.layer?.maskedCorners = [.layerMinXMinYCorner, .layerMinXMaxYCorner]
674
+        chromeColumn.layer?.masksToBounds = true
672 675
         let chromeDivider = NSView()
673 676
         chromeDivider.wantsLayer = true
674 677
         chromeDivider.layer?.backgroundColor = NSColor.black.withAlphaComponent(0.32).cgColor
@@ -694,10 +697,10 @@ class ViewController: NSViewController {
694 697
         content.translatesAutoresizingMaskIntoConstraints = false
695 698
 
696 699
         NSLayoutConstraint.activate([
697
-            shell.leadingAnchor.constraint(equalTo: root.leadingAnchor, constant: 4),
698
-            shell.trailingAnchor.constraint(equalTo: root.trailingAnchor, constant: -4),
700
+            shell.leadingAnchor.constraint(equalTo: root.leadingAnchor),
701
+            shell.trailingAnchor.constraint(equalTo: root.trailingAnchor),
699 702
             shell.topAnchor.constraint(equalTo: root.topAnchor, constant: 0),
700
-            shell.bottomAnchor.constraint(equalTo: root.bottomAnchor, constant: -4),
703
+            shell.bottomAnchor.constraint(equalTo: root.bottomAnchor),
701 704
             chromeColumn.leadingAnchor.constraint(equalTo: shell.leadingAnchor),
702 705
             chromeColumn.topAnchor.constraint(equalTo: shell.topAnchor),
703 706
             chromeColumn.bottomAnchor.constraint(equalTo: shell.bottomAnchor),
@@ -712,7 +715,7 @@ class ViewController: NSViewController {
712 715
             chromeHeader.heightAnchor.constraint(equalToConstant: homeChromeHeaderHeight),
713 716
             sidebar.leadingAnchor.constraint(equalTo: chromeColumn.leadingAnchor),
714 717
             sidebar.trailingAnchor.constraint(equalTo: chromeColumn.trailingAnchor),
715
-            sidebar.topAnchor.constraint(equalTo: chromeHeader.bottomAnchor, constant: 2),
718
+            sidebar.topAnchor.constraint(equalTo: chromeHeader.bottomAnchor),
716 719
             sidebar.bottomAnchor.constraint(equalTo: chromeColumn.bottomAnchor),
717 720
             content.leadingAnchor.constraint(equalTo: chromeColumn.trailingAnchor),
718 721
             content.trailingAnchor.constraint(equalTo: shell.trailingAnchor),