mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 11:03:21 -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
|
#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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user