Some tweaks for macOS target (#1260)

* fix macOS save video cover

* not hide title bar for macOS
This commit is contained in:
Kofua
2025-09-14 18:14:19 +08:00
committed by GitHub
parent d3f4ba4b4a
commit b9a55ccbce
3 changed files with 8 additions and 6 deletions

View File

@@ -78,14 +78,12 @@ void main() async {
); );
} else if (Utils.isDesktop) { } else if (Utils.isDesktop) {
await windowManager.ensureInitialized(); await windowManager.ensureInitialized();
WindowOptions windowOptions = WindowOptions( WindowOptions windowOptions = const WindowOptions(
minimumSize: const Size(400, 720), minimumSize: Size(400, 720),
size: const Size(1180, 720), size: Size(1180, 720),
center: true, center: true,
skipTaskbar: false, skipTaskbar: false,
titleBarStyle: Platform.isMacOS titleBarStyle: TitleBarStyle.normal,
? TitleBarStyle.hidden
: TitleBarStyle.normal,
title: Constants.appName, title: Constants.appName,
); );
windowManager.waitUntilReadyToShow(windowOptions, () async { windowManager.waitUntilReadyToShow(windowOptions, () async {

View File

@@ -10,5 +10,7 @@
<true/> <true/>
<key>com.apple.security.network.client</key> <key>com.apple.security.network.client</key>
<true/> <true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict> </dict>
</plist> </plist>

View File

@@ -6,5 +6,7 @@
<true/> <true/>
<key>com.apple.security.network.client</key> <key>com.apple.security.network.client</key>
<true/> <true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict> </dict>
</plist> </plist>