mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
Some tweaks for macOS target (#1260)
* fix macOS save video cover * not hide title bar for macOS
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user