Restore native menu bar icon
This commit is contained in:
@@ -14,21 +14,9 @@ struct FchatiApp: App {
|
||||
RootView()
|
||||
.background(WindowConfigurator())
|
||||
} label: {
|
||||
MenuBarIcon()
|
||||
}
|
||||
.menuBarExtraStyle(.window)
|
||||
}
|
||||
}
|
||||
|
||||
private struct MenuBarIcon: View {
|
||||
var body: some View {
|
||||
if let url = Bundle.main.url(forResource: "MenuBarIcon", withExtension: "png"),
|
||||
let image = NSImage(contentsOf: url) {
|
||||
Image(nsImage: image)
|
||||
.renderingMode(.original)
|
||||
} else {
|
||||
Image(systemName: "message")
|
||||
}
|
||||
.menuBarExtraStyle(.window)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user