From 6cd858405890683e8e84f28125e17388a8855eb4 Mon Sep 17 00:00:00 2001 From: Daniel Chick Date: Mon, 11 Mar 2024 21:30:39 -0500 Subject: [PATCH] Replace label style with new trailing icon --- Xcodes/Frontend/XcodeList/MainToolbar.swift | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Xcodes/Frontend/XcodeList/MainToolbar.swift b/Xcodes/Frontend/XcodeList/MainToolbar.swift index c64c1dd..969d0c1 100644 --- a/Xcodes/Frontend/XcodeList/MainToolbar.swift +++ b/Xcodes/Frontend/XcodeList/MainToolbar.swift @@ -34,25 +34,13 @@ struct MainToolbarModifier: ViewModifier { case .all: Label("All", systemImage: "line.horizontal.3.decrease.circle") case .release: - if #available(macOS 11.3, *) { Label("ReleaseOnly", systemImage: "line.horizontal.3.decrease.circle.fill") - .labelStyle(TitleAndIconLabelStyle()) + .labelStyle(.trailingIcon) .foregroundColor(.accentColor) - } else { - Label("ReleaseOnly", systemImage: "line.horizontal.3.decrease.circle.fill") - .labelStyle(TitleOnlyLabelStyle()) - .foregroundColor(.accentColor) - } case .beta: - if #available(macOS 11.3, *) { - Label("BetaOnly", systemImage: "line.horizontal.3.decrease.circle.fill") - .labelStyle(TitleAndIconLabelStyle()) - .foregroundColor(.accentColor) - } else { - Label("BetaOnly", systemImage: "line.horizontal.3.decrease.circle.fill") - .labelStyle(TitleOnlyLabelStyle()) - .foregroundColor(.accentColor) - } + Label("BetaOnly", systemImage: "line.horizontal.3.decrease.circle.fill") + .labelStyle(.trailingIcon) + .foregroundColor(.accentColor) } } .help("FilterAvailableDescription")