Custom iconography added for other areas of the app.

Changelog-Added: Custom iconography added for other areas of the app.
This commit is contained in:
Ben Weeks
2023-05-27 04:32:06 +01:00
committed by William Casarin
parent d12281fcc5
commit 973e9fe714
49 changed files with 167 additions and 565 deletions

View File

@@ -21,7 +21,7 @@ struct IconLabel: View {
var body: some View {
HStack(spacing: 0) {
Image(systemName: img_name)
Image(img_name)
.foregroundColor(img_color)
.frame(width: 20)
.padding([.trailing], 20)

View File

@@ -25,10 +25,10 @@ struct InvoiceView: View {
UIPasteboard.general.string = invoice.string
} label: {
if !copied {
Image(systemName: "doc.on.clipboard")
Image("copy2")
.foregroundColor(.gray)
} else {
Image(systemName: "checkmark.circle")
Image("check-circle")
.foregroundColor(DamusColors.green)
}
}
@@ -63,7 +63,7 @@ struct InvoiceView: View {
VStack(alignment: .leading, spacing: 12) {
HStack {
Label("", systemImage: "bolt.fill")
Label("", image: "zap.fill")
.foregroundColor(.orange)
Text("Lightning Invoice", comment: "Indicates that the view is for paying a Lightning invoice.")
Spacer()

View File

@@ -32,11 +32,11 @@ struct NIP05Badge: View {
Group {
if nip05_color {
LINEAR_GRADIENT
.mask(Image(systemName: "checkmark.seal.fill")
.mask(Image("check-circle.fill")
.resizable()
).frame(width: 14, height: 14)
} else if show_domain {
Image(systemName: "checkmark.seal.fill")
Image("check-circle.fill")
.font(.footnote)
.nip05_colorized(gradient: nip05_color)
}

View File

@@ -14,7 +14,7 @@ struct Reposted: View {
var body: some View {
HStack(alignment: .center) {
Image(systemName: "arrow.2.squarepath")
Image("repost")
.foregroundColor(Color.gray)
ProfileName(pubkey: pubkey, profile: profile, damus: damus, show_nip5_domain: false)
.foregroundColor(Color.gray)

View File

@@ -13,7 +13,7 @@ struct WebsiteLink: View {
var body: some View {
HStack {
Image(systemName: "link")
Image("link")
.foregroundColor(.gray)
.font(.footnote)

View File

@@ -45,11 +45,11 @@ struct ZapButton: View {
var zap_img: String {
switch our_zap {
case .none:
return "bolt"
return "zap"
case .zap:
return "bolt.fill"
return "zap.fill"
case .pending:
return "bolt.fill"
return "zap.fill"
}
}
@@ -120,9 +120,12 @@ struct ZapButton: View {
HStack(spacing: 4) {
Button(action: {
}, label: {
Image(systemName: zap_img)
Image(zap_img)
.resizable()
.foregroundColor(zap_color)
.font(.footnote.weight(.medium))
.aspectRatio(contentMode: .fit)
.frame(width:15, height: 15)
})
if zaps.zap_total > 0 {