Revert selected color for iOS

This commit is contained in:
Balazs Perlaki-Horvath 2025-04-21 21:38:21 +02:00
parent 92eda69437
commit eae4748703

View File

@ -25,11 +25,15 @@ enum CellBackground {
#endif #endif
static func colorFor(isHovering: Bool, isSelected: Bool = false) -> Color { static func colorFor(isHovering: Bool, isSelected: Bool = false) -> Color {
#if os(macOS)
if isSelected { if isSelected {
isHovering ? selected.opacity(0.75) : selected isHovering ? selected.opacity(0.75) : selected
} else { } else {
isHovering ? selected.opacity(0.5) : normal isHovering ? selected.opacity(0.5) : normal
} }
#else
isHovering ? selected : normal
#endif
} }
static let clipShapeRectangle = RoundedRectangle(cornerRadius: 12, style: .continuous) static let clipShapeRectangle = RoundedRectangle(cornerRadius: 12, style: .continuous)