Fixed the boosted font

This commit is contained in:
Sam DuBois
2022-12-18 21:46:44 -07:00
parent 614e6a7ee8
commit cfe623b58b
2 changed files with 12 additions and 7 deletions

View File

@@ -83,17 +83,22 @@ struct EventView: View {
NavigationLink(destination: booster_profile) { NavigationLink(destination: booster_profile) {
HStack { HStack {
Label("", systemImage: "arrow.2.squarepath") Image(systemName: "arrow.2.squarepath")
.font(.footnote.weight(.bold))
.foregroundColor(Color.gray) .foregroundColor(Color.gray)
ProfileName(pubkey: event.pubkey, profile: damus.profiles.lookup(id: event.pubkey), contacts: damus.contacts, show_friend_confirmed: show_friend_icon) if let prof = damus.profiles.lookup(id: event.pubkey) {
.foregroundColor(Color.gray) Text(Profile.displayName(profile: prof, pubkey: event.pubkey))
Text(" Boosted") .font(.footnote.weight(.bold))
.foregroundColor(Color.gray)
}
Text("Boosted")
.font(.footnote.weight(.bold))
.foregroundColor(Color.gray) .foregroundColor(Color.gray)
} }
} }
.buttonStyle(PlainButtonStyle()) .buttonStyle(PlainButtonStyle())
TextEvent(inner_ev, pubkey: inner_ev.pubkey) TextEvent(inner_ev, pubkey: inner_ev.pubkey)
.padding([.top], 2) .padding([.top], 1)
} }
} else { } else {
TextEvent(event, pubkey: pubkey) TextEvent(event, pubkey: pubkey)

View File

@@ -98,7 +98,7 @@ struct ProfileView: View {
Image(systemName: "bolt.circle") Image(systemName: "bolt.circle")
.symbolRenderingMode(.palette) .symbolRenderingMode(.palette)
.font(.system(size: 34).weight(.thin)) .font(.system(size: 34).weight(.thin))
.foregroundStyle(colorScheme == .light ? .black : .white, colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.1)) .foregroundStyle(colorScheme == .light ? .black : .white, colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.2))
} }
} }
@@ -110,7 +110,7 @@ struct ProfileView: View {
Image(systemName: "bubble.left.circle") Image(systemName: "bubble.left.circle")
.symbolRenderingMode(.palette) .symbolRenderingMode(.palette)
.font(.system(size: 34).weight(.thin)) .font(.system(size: 34).weight(.thin))
.foregroundStyle(colorScheme == .light ? .black : .white, colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.1)) .foregroundStyle(colorScheme == .light ? .black : .white, colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.2))
} }
} }