mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Add Get Info to Sidebar context menu
This commit is contained in:
parent
3f7401994d
commit
49c86bd578
@ -80,6 +80,10 @@ struct AppAssets {
|
|||||||
return RSImage(named: "FaviconTemplateImage")!
|
return RSImage(named: "FaviconTemplateImage")!
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
static var getInfoImage: Image = {
|
||||||
|
return Image(systemName: "info.circle")
|
||||||
|
}()
|
||||||
|
|
||||||
static var renameImage: Image = {
|
static var renameImage: Image = {
|
||||||
return Image(systemName: "textformat")
|
return Image(systemName: "textformat")
|
||||||
}()
|
}()
|
||||||
|
@ -37,6 +37,10 @@ struct SidebarItemView: View {
|
|||||||
|
|
||||||
@ViewBuilder var menuItems: some View {
|
@ViewBuilder var menuItems: some View {
|
||||||
if sidebarItem.representedType == .account {
|
if sidebarItem.representedType == .account {
|
||||||
|
Button(action: {}) {
|
||||||
|
Text("Get Info")
|
||||||
|
AppAssets.getInfoImage
|
||||||
|
}
|
||||||
Button(action: {}) {
|
Button(action: {}) {
|
||||||
Text("Mark All As Read")
|
Text("Mark All As Read")
|
||||||
AppAssets.markAllAsReadImage
|
AppAssets.markAllAsReadImage
|
||||||
@ -51,18 +55,19 @@ struct SidebarItemView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if sidebarItem.representedType == .webFeed {
|
if sidebarItem.representedType == .webFeed {
|
||||||
|
Button(action: {}) {
|
||||||
|
Text("Get Info")
|
||||||
|
AppAssets.getInfoImage
|
||||||
|
}
|
||||||
Button(action: {}) {
|
Button(action: {}) {
|
||||||
Text("Mark All As Read")
|
Text("Mark All As Read")
|
||||||
AppAssets.markAllAsReadImage
|
AppAssets.markAllAsReadImage
|
||||||
}
|
}
|
||||||
Divider()
|
Divider()
|
||||||
Button(action: {
|
Button(action: {}) {
|
||||||
|
|
||||||
}) {
|
|
||||||
Text("Open Home Page")
|
Text("Open Home Page")
|
||||||
AppAssets.openInBrowserImage
|
AppAssets.openInBrowserImage
|
||||||
}
|
}
|
||||||
Divider()
|
|
||||||
Button(action: {}) {
|
Button(action: {}) {
|
||||||
Text("Copy Feed URL")
|
Text("Copy Feed URL")
|
||||||
AppAssets.copyImage
|
AppAssets.copyImage
|
||||||
|
Loading…
Reference in New Issue
Block a user