From 74357236bb732c334407b33e2b5d6723f6bd066a Mon Sep 17 00:00:00 2001 From: Kingtous Date: Wed, 9 Nov 2022 20:09:13 +0800 Subject: [PATCH 1/3] opt: save offset and size after hide on linux --- flutter/pubspec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 0db164ea9..4cb4b40a7 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -60,11 +60,11 @@ dependencies: window_manager: git: url: https://github.com/Kingtous/rustdesk_window_manager - ref: d1e4b40f4a1ffeb8630696be6883dd31bf307998 + ref: 32b24c66151b72bba033ef8b954486aa9351d97b desktop_multi_window: git: url: https://github.com/Kingtous/rustdesk_desktop_multi_window - ref: 8d9db30df28eddfdb11ded4aaba6f0fe96547960 + ref: 0831243da7231c82ea56ebaeb36e650620d4a23b freezed_annotation: ^2.0.3 tray_manager: git: From e81ad83e85758c2abf3ffa8ef95c323c7e291a72 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Thu, 10 Nov 2022 12:19:44 +0800 Subject: [PATCH 2/3] feat: add windows nightly custom engine --- .github/workflows/flutter-nightly.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/flutter-nightly.yml b/.github/workflows/flutter-nightly.yml index fae447d6b..e55dd3df4 100644 --- a/.github/workflows/flutter-nightly.yml +++ b/.github/workflows/flutter-nightly.yml @@ -38,6 +38,14 @@ jobs: with: channel: 'stable' flutter-version: ${{ env.FLUTTER_VERSION }} + + - name: Replace engine with rustdesk custom flutter engine + shell: bash + run: | + flutter doctor -v + wget https://github.com/Kingtous/engine/releases/download/v3.0.5-rustdesk/windows-x64-release-flutter.zip + unzip windows-x64-release-flutter.zip -d engine + mv engine/* C:/hostedtoolcache/windows/flutter/stable-3.0.5-x64/bin/cache/artifacts/engine/windows-x64-release/ - name: Install Rust toolchain uses: actions-rs/toolchain@v1 From 31e2ac93d43f1970782e5e10a901a03f95fd84ef Mon Sep 17 00:00:00 2001 From: Kingtous Date: Thu, 10 Nov 2022 12:29:50 +0800 Subject: [PATCH 3/3] opt: change minimum cursor size to 12 --- .github/workflows/flutter-nightly.yml | 8 ++++---- flutter/lib/consts.dart | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/flutter-nightly.yml b/.github/workflows/flutter-nightly.yml index e55dd3df4..fdbced00a 100644 --- a/.github/workflows/flutter-nightly.yml +++ b/.github/workflows/flutter-nightly.yml @@ -40,12 +40,12 @@ jobs: flutter-version: ${{ env.FLUTTER_VERSION }} - name: Replace engine with rustdesk custom flutter engine - shell: bash run: | flutter doctor -v - wget https://github.com/Kingtous/engine/releases/download/v3.0.5-rustdesk/windows-x64-release-flutter.zip - unzip windows-x64-release-flutter.zip -d engine - mv engine/* C:/hostedtoolcache/windows/flutter/stable-3.0.5-x64/bin/cache/artifacts/engine/windows-x64-release/ + flutter precache --windows + Invoke-WebRequest -Uri https://github.com/Kingtous/engine/releases/download/v3.0.5-rustdesk/windows-x64-release-flutter.zip -OutFile windows-x64-release-flutter.zip + Expand-Archive windows-x64-release-flutter.zip -DestinationPath engine + mv -Force engine/* C:/hostedtoolcache/windows/flutter/stable-3.0.5-x64/bin/cache/artifacts/engine/windows-x64-release/ - name: Install Rust toolchain uses: actions-rs/toolchain@v1 diff --git a/flutter/lib/consts.dart b/flutter/lib/consts.dart index 8287378e9..48e99943f 100644 --- a/flutter/lib/consts.dart +++ b/flutter/lib/consts.dart @@ -45,7 +45,7 @@ const double kEmptyMarginTop = 50; const double kDesktopIconButtonSplashRadius = 20; /// [kMinCursorSize] indicates min cursor (w, h) -const int kMinCursorSize = 24; +const int kMinCursorSize = 12; /// [kDefaultScrollAmountMultiplier] indicates how many rows can be scrolled after a minimum scroll action of mouse const kDefaultScrollAmountMultiplier = 5.0;