Move directly referenced images to AppAssets

This commit is contained in:
Maurice Parker 2020-07-04 11:57:51 -05:00
parent 7cebe7e70f
commit 5d43635780
2 changed files with 20 additions and 8 deletions

View File

@ -52,6 +52,14 @@ struct AppAssets {
return Image(systemName: "plus")
}()
static var copyImage: Image = {
return Image(systemName: "doc.on.doc")
}()
static var deleteImage: Image = {
return Image(systemName: "trash")
}()
static var extensionPointMarsEdit: RSImage = {
return RSImage(named: "ExtensionPointMarsEdit")!
}()
@ -72,6 +80,10 @@ struct AppAssets {
return RSImage(named: "FaviconTemplateImage")!
}()
static var renameImage: Image = {
return Image(systemName: "textformat")
}()
static var settingsImage: Image = {
return Image(systemName: "gear")
}()

View File

@ -41,7 +41,7 @@ struct SidebarItemView: View {
HStack {
Text("Mark All As Read in \(sidebarItem.nameForDisplay)")
Spacer()
Image("markAllAsRead")
AppAssets.markAllAsReadImage
.resizable()
.aspectRatio(contentMode: .fit)
}
@ -52,7 +52,7 @@ struct SidebarItemView: View {
HStack {
Text("Mark All as Read")
Spacer()
Image("markAllAsRead")
AppAssets.markAllAsReadImage
.resizable()
.aspectRatio(contentMode: .fit)
}
@ -64,7 +64,7 @@ struct SidebarItemView: View {
HStack {
Text("Open Home Page")
Spacer()
Image(systemName: "safari")
AppAssets.openInBrowserImage
}
}
Divider()
@ -72,14 +72,14 @@ struct SidebarItemView: View {
HStack {
Text("Copy Feed URL")
Spacer()
Image(systemName: "doc.on.doc")
AppAssets.copyImage
}
}
Button(action: {}) {
HStack {
Text("Copy Home Page URL")
Spacer()
Image(systemName: "doc.on.doc")
AppAssets.copyImage
}
}
Divider()
@ -87,14 +87,14 @@ struct SidebarItemView: View {
HStack {
Text("Rename")
Spacer()
Image(systemName: "textformat")
AppAssets.renameImage
}
}
Button(action: {}) {
HStack {
Text("Delete").foregroundColor(.red)
Spacer()
Image(systemName: "trash").foregroundColor(.red)
AppAssets.deleteImage.foregroundColor(.red)
}
}
}
@ -103,7 +103,7 @@ struct SidebarItemView: View {
HStack {
Text("Mark All as Read")
Spacer()
Image("markAllAsRead")
AppAssets.markAllAsReadImage
.resizable()
.aspectRatio(contentMode: .fit)
}