Show Fchati as a dock application
This commit is contained in:
@@ -24,7 +24,5 @@
|
||||
<true/>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Fchati uses the microphone to record voice messages.</string>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user