mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
Adds sidebar toggle image to app assets
This commit is contained in:
parent
dadff04da5
commit
cd20632b5d
@ -301,6 +301,10 @@ struct AppAssets {
|
||||
return IconImage(coloredImage, isSymbol: true)
|
||||
#endif
|
||||
}
|
||||
|
||||
static var sidebarToggleImage: Image {
|
||||
return Image(systemName: "sidebar.left")
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
static var webStatusBarBackground: NSColor = {
|
||||
|
@ -107,7 +107,7 @@ struct SceneNavigationView: View {
|
||||
#warning("Use of AppKit in SwiftUI.")
|
||||
NSApp.keyWindow?.firstResponder?.tryToPerform(#selector(NSSplitViewController.toggleSidebar(_:)), with: nil)
|
||||
} label: {
|
||||
Image(systemName: "sidebar.left")
|
||||
AppAssets.sidebarToggleImage
|
||||
}
|
||||
.help("Toggle Sidebar")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user