Parcourir la Source

Reduce paywall continue button size for better balance.

Shrink the CTA height, font, corner radius, and width so the paywall action feels proportionate and less visually dominant.

Made-with: Cursor
huzaifahayat12 il y a 3 heures
Parent
commit
9d6561c547
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      classroom_app/ViewController.swift

+ 4 - 4
classroom_app/ViewController.swift

@@ -2791,11 +2791,11 @@ private extension ViewController {
2791
         continueButton.isBordered = false
2791
         continueButton.isBordered = false
2792
         continueButton.bezelStyle = .regularSquare
2792
         continueButton.bezelStyle = .regularSquare
2793
         continueButton.wantsLayer = true
2793
         continueButton.wantsLayer = true
2794
-        continueButton.layer?.cornerRadius = 14
2794
+        continueButton.layer?.cornerRadius = 12
2795
         continueButton.layer?.backgroundColor = palette.primaryBlue.cgColor
2795
         continueButton.layer?.backgroundColor = palette.primaryBlue.cgColor
2796
-        continueButton.heightAnchor.constraint(equalToConstant: 44).isActive = true
2796
+        continueButton.heightAnchor.constraint(equalToConstant: 36).isActive = true
2797
         styleSurface(continueButton, borderColor: palette.primaryBlueBorder, borderWidth: 1, shadow: true)
2797
         styleSurface(continueButton, borderColor: palette.primaryBlueBorder, borderWidth: 1, shadow: true)
2798
-        let continueLabel = textLabel("Continue", font: NSFont.systemFont(ofSize: 16, weight: .bold), color: .white)
2798
+        let continueLabel = textLabel("Continue", font: NSFont.systemFont(ofSize: 14, weight: .bold), color: .white)
2799
         continueButton.addSubview(continueLabel)
2799
         continueButton.addSubview(continueLabel)
2800
         NSLayoutConstraint.activate([
2800
         NSLayoutConstraint.activate([
2801
             continueLabel.centerXAnchor.constraint(equalTo: continueButton.centerXAnchor),
2801
             continueLabel.centerXAnchor.constraint(equalTo: continueButton.centerXAnchor),
@@ -2811,7 +2811,7 @@ private extension ViewController {
2811
         paywallContinueButton = continueButton
2811
         paywallContinueButton = continueButton
2812
         paywallContinueLabel = continueLabel
2812
         paywallContinueLabel = continueLabel
2813
         contentStack.addArrangedSubview(continueButton)
2813
         contentStack.addArrangedSubview(continueButton)
2814
-        continueButton.widthAnchor.constraint(equalTo: contentStack.widthAnchor).isActive = true
2814
+        continueButton.widthAnchor.constraint(equalToConstant: 360).isActive = true
2815
 
2815
 
2816
         let secure = textLabel("Secured by Apple. Cancel anytime.", font: NSFont.systemFont(ofSize: 12, weight: .semibold), color: palette.textSecondary)
2816
         let secure = textLabel("Secured by Apple. Cancel anytime.", font: NSFont.systemFont(ofSize: 12, weight: .semibold), color: palette.textSecondary)
2817
         secure.alignment = .center
2817
         secure.alignment = .center