Procházet zdrojové kódy

Make settings panel and section card borders more visible.

Use the stronger paywallBorder color and 1.5px width so the outer panel and App/About groups read clearly against the background.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 před 1 měsícem
rodič
revize
95d126fc0f
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 5 4
      smart_printer/SettingsView.swift

+ 5 - 4
smart_printer/SettingsView.swift

@@ -144,14 +144,14 @@ private final class SettingsPanelView: NSView, AppearanceRefreshable {
         super.init(frame: .zero)
         wantsLayer = true
         layer?.cornerRadius = 22
-        layer?.borderWidth = 1
+        layer?.borderWidth = 1.5
         applyCardShadow()
         refreshAppearance()
     }
 
     func refreshAppearance() {
         layer?.backgroundColor = AppTheme.cardBackground.cgColor
-        layer?.borderColor = AppTheme.border.cgColor
+        layer?.borderColor = AppTheme.paywallBorder.cgColor
     }
 
     @available(*, unavailable)
@@ -166,7 +166,8 @@ private final class SettingsGroupCard: NSView, AppearanceRefreshable {
         translatesAutoresizingMaskIntoConstraints = false
         wantsLayer = true
         layer?.cornerRadius = 16
-        layer?.borderWidth = 1
+        layer?.borderWidth = 1.5
+        layer?.masksToBounds = true
         refreshAppearance()
 
         stack.orientation = .vertical
@@ -192,7 +193,7 @@ private final class SettingsGroupCard: NSView, AppearanceRefreshable {
 
     func refreshAppearance() {
         layer?.backgroundColor = AppTheme.groupCardBackground.cgColor
-        layer?.borderColor = AppTheme.border.cgColor
+        layer?.borderColor = AppTheme.paywallBorder.cgColor
     }
 }