Skip to content

Commit 6cd8584

Browse files
committed
Replace label style with new trailing icon
1 parent 96e4682 commit 6cd8584

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

Xcodes/Frontend/XcodeList/MainToolbar.swift

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,13 @@ struct MainToolbarModifier: ViewModifier {
3434
case .all:
3535
Label("All", systemImage: "line.horizontal.3.decrease.circle")
3636
case .release:
37-
if #available(macOS 11.3, *) {
3837
Label("ReleaseOnly", systemImage: "line.horizontal.3.decrease.circle.fill")
39-
.labelStyle(TitleAndIconLabelStyle())
38+
.labelStyle(.trailingIcon)
4039
.foregroundColor(.accentColor)
41-
} else {
42-
Label("ReleaseOnly", systemImage: "line.horizontal.3.decrease.circle.fill")
43-
.labelStyle(TitleOnlyLabelStyle())
44-
.foregroundColor(.accentColor)
45-
}
4640
case .beta:
47-
if #available(macOS 11.3, *) {
48-
Label("BetaOnly", systemImage: "line.horizontal.3.decrease.circle.fill")
49-
.labelStyle(TitleAndIconLabelStyle())
50-
.foregroundColor(.accentColor)
51-
} else {
52-
Label("BetaOnly", systemImage: "line.horizontal.3.decrease.circle.fill")
53-
.labelStyle(TitleOnlyLabelStyle())
54-
.foregroundColor(.accentColor)
55-
}
41+
Label("BetaOnly", systemImage: "line.horizontal.3.decrease.circle.fill")
42+
.labelStyle(.trailingIcon)
43+
.foregroundColor(.accentColor)
5644
}
5745
}
5846
.help("FilterAvailableDescription")

0 commit comments

Comments
 (0)