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
static func colorFor(isHovering: Bool, isSelected: Bool = false) -> Color {
#if os(macOS)
if isSelected {
isHovering ? selected.opacity(0.75) : selected
} else {
isHovering ? selected.opacity(0.5) : normal
}
#else
isHovering ? selected : normal
#endif
}
static let clipShapeRectangle = RoundedRectangle(cornerRadius: 12, style: .continuous)