Sfoglia il codice sorgente

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 6 mesi fa
parent
commit
e4d84cc6b9
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      zoom_app/ViewController.swift

+ 4 - 4
zoom_app/ViewController.swift

@@ -1080,16 +1080,16 @@ class ViewController: NSViewController {
         button.focusRingType = .none
         button.focusRingType = .none
         button.wantsLayer = true
         button.wantsLayer = true
         button.layer?.backgroundColor = accentBlue.cgColor
         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: [
         button.attributedTitle = NSAttributedString(string: title, attributes: [
             .foregroundColor: NSColor.white,
             .foregroundColor: NSColor.white,
             .font: font
             .font: font
         ])
         ])
         button.toolTip = title
         button.toolTip = title
         button.translatesAutoresizingMaskIntoConstraints = false
         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
         return button
     }
     }