Browse Source

Fixed the boosted font

profile-edit
Sam DuBois 2 years ago
parent
commit
cfe623b58b
  1. 15
      damus/Views/EventView.swift
  2. 4
      damus/Views/ProfileView.swift

15
damus/Views/EventView.swift

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

4
damus/Views/ProfileView.swift

@ -98,7 +98,7 @@ struct ProfileView: View {
Image(systemName: "bolt.circle")
.symbolRenderingMode(.palette)
.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")
.symbolRenderingMode(.palette)
.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))
}
}

Loading…
Cancel
Save