From 5658209bd322449f4b54fa4a3047a485cc2ed32c Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 20 Dec 2023 15:33:33 -0800 Subject: Add refresh button to Servers window. Fix styling on disclosure arrow. Remove icons from news list. Trying tooltips on some buttons. --- Hotline/macOS/NewsView.swift | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'Hotline/macOS/NewsView.swift') diff --git a/Hotline/macOS/NewsView.swift b/Hotline/macOS/NewsView.swift index c59b446..3c35b1b 100644 --- a/Hotline/macOS/NewsView.swift +++ b/Hotline/macOS/NewsView.swift @@ -31,20 +31,26 @@ struct NewsItemView: View { Button { news.expanded.toggle() } label: { - Image(systemName: news.expanded ? "chevron.down" : "chevron.right") - .renderingMode(.template) - .frame(width: 10, height: 10) - .aspectRatio(contentMode: .fit) + Text(Image(systemName: news.expanded ? "chevron.down" : "chevron.right")) + .bold() + .font(.system(size: 10)) .opacity(0.5) + .frame(alignment: .center) } .buttonStyle(.plain) - .frame(width: 12) + .frame(width: 10) + .padding(.leading, 4) } - if news.type == .article { - HStack(alignment: .center) { - Image(systemName: "quote.opening") - } - .frame(width: 15) + else if news.type == .article { +// HStack(alignment: .center) { +// Text(Image(systemName: "quote.opening")) +// .font(.system(size: 12)) +// .opacity(0.5) +// .frame(alignment: .centerFirstTextBaseline) + +// Image(systemName: "quote.opening") +// } +// .frame(width: 14) } Text(news.name) .fontWeight((news.type == .bundle || news.type == .category) ? .bold : .regular) -- cgit