mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 02:52:39 -04:00
Merge pull request #1176 from kiwix/1175-ios-selected-cell-background-color-is-wrong
Revert selected cell color for iOS
This commit is contained in:
commit
58fb279abd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user