Use custom icon for app and menu bar
This commit is contained in:
@@ -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.
@@ -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 |
Reference in New Issue
Block a user