Restore native menu bar icon

This commit is contained in:
diyaa
2026-07-27 02:55:08 +02:00
parent a078e8a4ec
commit 2e1d40caad
3 changed files with 2 additions and 21 deletions
+1 -13
View File
@@ -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)
}
}