From 770f22762f68543250180fc791f36bfbde81254c Mon Sep 17 00:00:00 2001 From: Lumaa Date: Sat, 10 Feb 2024 01:08:53 +0100 Subject: [PATCH] made icons all sizes --- Threaded/Components/NotificationRow.swift | 26 +++++++++++++++++------ Threaded/Views/DiscoveryView.swift | 13 ++++++++++++ 2 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 Threaded/Views/DiscoveryView.swift diff --git a/Threaded/Components/NotificationRow.swift b/Threaded/Components/NotificationRow.swift index fe0c0fc..68032b1 100644 --- a/Threaded/Components/NotificationRow.swift +++ b/Threaded/Components/NotificationRow.swift @@ -95,28 +95,40 @@ struct NotificationRow: View { @ViewBuilder private func notifIcon() -> some View { - let font: Font = .system(size: 12, weight: .regular, design: .monospaced) + let size: CGFloat = 60.0 / 4.0 ZStack { switch (notif.supportedType) { case .favourite: Image(systemName: "heart.fill") - .font(font) + .resizable() + .scaledToFit() + .frame(width: size, height: size) case .follow: Image(systemName: "person.fill.badge.plus") - .font(font) + .resizable() + .scaledToFit() + .frame(width: size, height: size) case .mention: Image(systemName: "tag.fill") - .font(font) + .resizable() + .scaledToFit() + .frame(width: size, height: size) case .reblog: Image(systemName: "bolt.horizontal.fill") - .font(font) + .resizable() + .scaledToFit() + .frame(width: size, height: size) case .status: Image(systemName: "text.badge.plus") - .font(font) + .resizable() + .scaledToFit() + .frame(width: size, height: size) default: Image(systemName: "questionmark") - .font(font) + .resizable() + .scaledToFit() + .frame(width: size, height: size) } } .frame(minWidth: 30) diff --git a/Threaded/Views/DiscoveryView.swift b/Threaded/Views/DiscoveryView.swift new file mode 100644 index 0000000..210d05c --- /dev/null +++ b/Threaded/Views/DiscoveryView.swift @@ -0,0 +1,13 @@ +//Made by Lumaa + +import SwiftUI + +struct DiscoveryView: View { + var body: some View { + Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) + } +} + +#Preview { + DiscoveryView() +}