Explorar el Código

Shrink Upgrade to Pro top bar button

Reduce height, font size, minimum width, and corner radius so the pill
matches the rest of the toolbar scale.

Made-with: Cursor
huzaifahayat12 hace 3 meses
padre
commit
e4d84cc6b9
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      zoom_app/ViewController.swift

+ 4 - 4
zoom_app/ViewController.swift

@@ -1080,16 +1080,16 @@ class ViewController: NSViewController {
         button.focusRingType = .none
         button.wantsLayer = true
         button.layer?.backgroundColor = accentBlue.cgColor
-        button.layer?.cornerRadius = 17
-        let font = NSFont.systemFont(ofSize: 13, weight: .semibold)
+        button.layer?.cornerRadius = 14
+        let font = NSFont.systemFont(ofSize: 11, weight: .semibold)
         button.attributedTitle = NSAttributedString(string: title, attributes: [
             .foregroundColor: NSColor.white,
             .font: font
         ])
         button.toolTip = title
         button.translatesAutoresizingMaskIntoConstraints = false
-        button.heightAnchor.constraint(equalToConstant: 34).isActive = true
-        button.widthAnchor.constraint(greaterThanOrEqualToConstant: 152).isActive = true
+        button.heightAnchor.constraint(equalToConstant: 28).isActive = true
+        button.widthAnchor.constraint(greaterThanOrEqualToConstant: 124).isActive = true
         return button
     }