Skip to content

Commit

Permalink
Change inactive transfers sidebar icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamuko committed Oct 21, 2024
1 parent 58213a5 commit 8dc220e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dreadnought/Views/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,23 @@ struct StatusNavigationLink: View {
case .completed: "checkmark"
case .resumed: "play"
case .stopped: "stop"
case .active: "arrow.up.arrow.down"
case .inactive: "clock.arrow.2.circlepath"
case .active, .inactive: "arrow.up.arrow.down"
case .stalled: "arrow.down.left.arrow.up.right"
case .stalledDL: "arrow.down.left"
case .stalledUP: "arrow.up.right"
case .checking: "arrow.triangle.2.circlepath"
case .errored: "exclamationmark.triangle.fill"
}
}
var imageStyle: HierarchicalShapeStyle {
state != .inactive ? .primary : .tertiary
}

var body: some View {
NavigationLink(value: Filter.state(state)) {
HStack(alignment: .center, spacing: 5) {
Image(systemName: imageName)
.foregroundStyle(imageStyle)
.fontWeight(.medium)
.font(.system(size: 14))
.frame(width: 19, alignment: .center)
Expand Down

0 comments on commit 8dc220e

Please sign in to comment.