From 8dc220ec8c93fd6f415ca7142ccb116f69dc1d6e Mon Sep 17 00:00:00 2001 From: Hamuko Date: Mon, 21 Oct 2024 22:44:40 +0300 Subject: [PATCH] Change inactive transfers sidebar icon --- Dreadnought/Views/MainView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dreadnought/Views/MainView.swift b/Dreadnought/Views/MainView.swift index 8c64cdb..42c3704 100644 --- a/Dreadnought/Views/MainView.swift +++ b/Dreadnought/Views/MainView.swift @@ -66,8 +66,7 @@ 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" @@ -75,11 +74,15 @@ struct StatusNavigationLink: View { 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)