Adds sidebar toggle image to app assets

This commit is contained in:
Stuart Breckenridge 2020-08-10 08:36:31 +08:00
parent dadff04da5
commit cd20632b5d
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
2 changed files with 5 additions and 1 deletions

View File

@ -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 = {

View File

@ -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")
}