opt: ui & cursor

- opt: win7 frameless
- opt: disable cursor output & macos free cache
- opt: main window, set location before show/hide
This commit is contained in:
Kingtous
2022-11-29 23:03:16 +08:00
parent da88d5c0b8
commit 8a4f8e202d
7 changed files with 65 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
import 'package:flutter/material.dart';
import 'dart:io';
import 'package:flutter_hbb/common.dart';
const double kDesktopRemoteTabBarHeight = 28.0;
/// [kAppTypeMain] used by 'Desktop Main Page' , 'Mobile (Client and Server)' , 'Desktop CM Page', "Install Page"
@@ -324,3 +326,20 @@ const Map<int, String> physicalKeyMap = <int, String>{
0x000c019e: 'LOCK_SCREEN',
0x000c0208: 'VK_PRINT',
};
/// The windows targets in the publish time order.
enum WindowsTarget {
naw, // not a windows target
xp,
vista,
w7,
w8,
w8_1,
w10,
w11
}
/// A convenient method to transform a build number to the corresponding windows version.
extension WindowsTargetExt on int {
WindowsTarget get windowsVersion => getWindowsTarget(this);
}