Show Fchati as a dock application

This commit is contained in:
diyaa
2026-07-26 22:15:35 +02:00
parent f9e74d2dfe
commit ddb5131ae8
3 changed files with 7 additions and 3 deletions
-2
View File
@@ -24,7 +24,5 @@
<true/>
<key>NSMicrophoneUsageDescription</key>
<string>Fchati uses the microphone to record voice messages.</string>
<key>LSUIElement</key>
<true/>
</dict>
</plist>
+6 -1
View File
@@ -5,6 +5,11 @@ import SwiftUI
@main
struct FchatiApp: App {
var body: some Scene {
WindowGroup("Fchati") {
RootView()
}
.defaultSize(width: 420, height: 560)
MenuBarExtra("Fchati", systemImage: "message") {
RootView()
.background(WindowConfigurator())
@@ -93,7 +98,7 @@ private struct RootView: View {
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
.frame(width: 360)
.frame(minWidth: 360, idealWidth: 420, maxWidth: 640)
.frame(minHeight: 480)
}
}