浏览代码

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 3 小时之前
父节点
当前提交
9d6561c547
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      classroom_app/ViewController.swift

+ 4 - 4
classroom_app/ViewController.swift

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