Преглед изворни кода

Match feature card arrow borders with their card styling.

Use the same border color, width, and hover behavior on chevron circles as the surrounding feature cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 пре 1 месец
родитељ
комит
560831100c
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      smart_printer/UIComponents.swift

+ 5 - 2
smart_printer/UIComponents.swift

@@ -465,7 +465,7 @@ final class FeatureCardView: NSView, AppearanceRefreshable {
         arrowButton.isBordered = false
         arrowButton.wantsLayer = true
         arrowButton.layer?.cornerRadius = 13
-        arrowButton.layer?.borderWidth = 1
+        arrowButton.layer?.borderWidth = 1.5
         arrowButton.translatesAutoresizingMaskIntoConstraints = false
         if let arrow = NSImage(systemSymbolName: "chevron.right", accessibilityDescription: "Open") {
             let config = NSImage.SymbolConfiguration(pointSize: 10, weight: .semibold)
@@ -515,7 +515,9 @@ final class FeatureCardView: NSView, AppearanceRefreshable {
     private func setHovered(_ hovering: Bool) {
         isHovered = hovering
         applyHoverLift(hovering)
-        layer?.borderWidth = hovering ? 2 : 1.5
+        let borderWidth: CGFloat = hovering ? 2 : 1.5
+        layer?.borderWidth = borderWidth
+        arrowButton.layer?.borderWidth = borderWidth
     }
 
     func refreshAppearance() {
@@ -525,6 +527,7 @@ final class FeatureCardView: NSView, AppearanceRefreshable {
         titleLabel.refreshThemeLabelColor()
         subtitleLabel.refreshThemeLabelColor()
         arrowButton.layer?.backgroundColor = AppTheme.elevatedBackground.cgColor
+        arrowButton.layer?.borderWidth = isHovered ? 2 : 1.5
         arrowButton.layer?.borderColor = AppTheme.paywallBorder.cgColor
         arrowButton.contentTintColor = AppTheme.textSecondary
         if isHovered {