فهرست منبع

Raise home sidebar icons to start near top.

Pin the home sidebar stack to the top so navigation items no longer render too low in the left rail.

Made-with: Cursor
huzaifahayat12 3 ماه پیش
والد
کامیت
9bc8370099
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      zoom_app/ViewController.swift

+ 2 - 3
zoom_app/ViewController.swift

@@ -32,7 +32,7 @@ class ViewController: NSViewController {
     private let nativeTrafficLightsTopInset: CGFloat = 20
     private let brandLeadingInset: CGFloat = 84
     private let accentBlue = NSColor(calibratedRed: 27 / 255, green: 115 / 255, blue: 232 / 255, alpha: 1)
-    private let accentOrange = NSColor(calibratedRed: 1.0, green: 0.60, blue: 0.20, alpha: 1)
+    private let accentOrange = NSColor(calibratedRed: 254 / 255, green: 117 / 255, blue: 46 / 255, alpha: 1)
     private let primaryText = NSColor(calibratedWhite: 0.98, alpha: 1)
     private let secondaryText = NSColor(calibratedWhite: 0.78, alpha: 1)
     private let mutedText = NSColor(calibratedWhite: 0.66, alpha: 1)
@@ -1206,8 +1206,7 @@ class ViewController: NSViewController {
         ])
         if style == .home {
             NSLayoutConstraint.activate([
-                stack.topAnchor.constraint(greaterThanOrEqualTo: sidebar.topAnchor, constant: 18),
-                stack.centerYAnchor.constraint(equalTo: sidebar.centerYAnchor, constant: 30)
+                stack.topAnchor.constraint(equalTo: sidebar.topAnchor, constant: 10)
             ])
             stack.bottomAnchor.constraint(lessThanOrEqualTo: sidebar.bottomAnchor, constant: -18).isActive = true
         } else {