diff options
| author | Dustin Mierau <dustin@mierau.me> | 2023-12-20 15:33:33 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2023-12-20 15:33:33 -0800 |
| commit | 5658209bd322449f4b54fa4a3047a485cc2ed32c (patch) | |
| tree | 1eb82432ffb95873f1ff1b275e8eabfb74f1e14c /Hotline/macOS/NewsView.swift | |
| parent | cc19df82bab213bd628792e0b3eca8c2ee986506 (diff) | |
Add refresh button to Servers window. Fix styling on disclosure arrow. Remove icons from news list. Trying tooltips on some buttons.
Diffstat (limited to 'Hotline/macOS/NewsView.swift')
| -rw-r--r-- | Hotline/macOS/NewsView.swift | 26 |
1 files changed, 16 insertions, 10 deletions
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) |