Use custom icon for app and menu bar

This commit is contained in:
diyaa
2026-07-27 02:45:51 +02:00
parent cce1b350e0
commit 24efe36d8e
7 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ let package = Package(
targets: [
.executableTarget(
name: "FchatiApp",
path: "Sources/FchatiApp"
path: "Sources/FchatiApp",
resources: [.process("Resources")]
),
.testTarget(
name: "FchatiAppTests",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.
+4 -1
View File
@@ -10,9 +10,12 @@ struct FchatiApp: App {
}
.defaultSize(width: 420, height: 560)
MenuBarExtra("Fchati", systemImage: "message") {
MenuBarExtra {
RootView()
.background(WindowConfigurator())
} label: {
Image("MenuBarIcon", bundle: .module)
.renderingMode(.original)
}
.menuBarExtraStyle(.window)
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB