|
|
@@ -172,24 +172,13 @@ private struct SidebarRowHoverModifier: ViewModifier {
|
|
|
|
|
|
@ViewBuilder
|
|
|
private var sidebarRowBackground: some View {
|
|
|
- if showsCardBackground {
|
|
|
+ if showsCardBackground && isSelected {
|
|
|
RoundedRectangle(cornerRadius: AppTheme.cornerRadiusSmall)
|
|
|
.fill(AppTheme.quickAccessBackground)
|
|
|
.overlay(
|
|
|
RoundedRectangle(cornerRadius: AppTheme.cornerRadiusSmall)
|
|
|
- .stroke(
|
|
|
- isSelected
|
|
|
- ? selectedBorderColor
|
|
|
- : (isHovered ? AppTheme.hoverBorder : AppTheme.cardBorder),
|
|
|
- lineWidth: 1
|
|
|
- )
|
|
|
+ .stroke(selectedBorderColor, lineWidth: 1)
|
|
|
)
|
|
|
- .overlay {
|
|
|
- if isHovered && !isSelected {
|
|
|
- RoundedRectangle(cornerRadius: AppTheme.cornerRadiusSmall)
|
|
|
- .fill(AppTheme.hoverFill)
|
|
|
- }
|
|
|
- }
|
|
|
} else if isSelected {
|
|
|
RoundedRectangle(cornerRadius: AppTheme.cornerRadiusSmall)
|
|
|
.fill(AppTheme.selectedRowFill)
|