Browse Source

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 4 hours ago
parent
commit
95d126fc0f
1 changed files with 5 additions and 4 deletions
  1. 5 4
      smart_printer/SettingsView.swift

+ 5 - 4
smart_printer/SettingsView.swift

@@ -144,14 +144,14 @@ private final class SettingsPanelView: NSView, AppearanceRefreshable {
144
         super.init(frame: .zero)
144
         super.init(frame: .zero)
145
         wantsLayer = true
145
         wantsLayer = true
146
         layer?.cornerRadius = 22
146
         layer?.cornerRadius = 22
147
-        layer?.borderWidth = 1
147
+        layer?.borderWidth = 1.5
148
         applyCardShadow()
148
         applyCardShadow()
149
         refreshAppearance()
149
         refreshAppearance()
150
     }
150
     }
151
 
151
 
152
     func refreshAppearance() {
152
     func refreshAppearance() {
153
         layer?.backgroundColor = AppTheme.cardBackground.cgColor
153
         layer?.backgroundColor = AppTheme.cardBackground.cgColor
154
-        layer?.borderColor = AppTheme.border.cgColor
154
+        layer?.borderColor = AppTheme.paywallBorder.cgColor
155
     }
155
     }
156
 
156
 
157
     @available(*, unavailable)
157
     @available(*, unavailable)
@@ -166,7 +166,8 @@ private final class SettingsGroupCard: NSView, AppearanceRefreshable {
166
         translatesAutoresizingMaskIntoConstraints = false
166
         translatesAutoresizingMaskIntoConstraints = false
167
         wantsLayer = true
167
         wantsLayer = true
168
         layer?.cornerRadius = 16
168
         layer?.cornerRadius = 16
169
-        layer?.borderWidth = 1
169
+        layer?.borderWidth = 1.5
170
+        layer?.masksToBounds = true
170
         refreshAppearance()
171
         refreshAppearance()
171
 
172
 
172
         stack.orientation = .vertical
173
         stack.orientation = .vertical
@@ -192,7 +193,7 @@ private final class SettingsGroupCard: NSView, AppearanceRefreshable {
192
 
193
 
193
     func refreshAppearance() {
194
     func refreshAppearance() {
194
         layer?.backgroundColor = AppTheme.groupCardBackground.cgColor
195
         layer?.backgroundColor = AppTheme.groupCardBackground.cgColor
195
-        layer?.borderColor = AppTheme.border.cgColor
196
+        layer?.borderColor = AppTheme.paywallBorder.cgColor
196
     }
197
     }
197
 }
198
 }
198
 
199