mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 18:02:48 +08:00
fix desktop id padding
This commit is contained in:
parent
71a8c55f98
commit
e30f690f9c
@ -158,7 +158,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
readOnly: true,
|
readOnly: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
contentPadding: EdgeInsets.only(bottom: 20),
|
contentPadding: EdgeInsets.only(top: 10, bottom: 10),
|
||||||
),
|
),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
@ -242,7 +242,8 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
readOnly: true,
|
readOnly: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
contentPadding: EdgeInsets.only(bottom: 2),
|
contentPadding:
|
||||||
|
EdgeInsets.only(top: 14, bottom: 10),
|
||||||
),
|
),
|
||||||
style: TextStyle(fontSize: 15),
|
style: TextStyle(fontSize: 15),
|
||||||
),
|
),
|
||||||
@ -254,9 +255,9 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
Icons.refresh,
|
Icons.refresh,
|
||||||
color: refreshHover.value
|
color: refreshHover.value
|
||||||
? textColor
|
? textColor
|
||||||
: Color(0xFFDDDDDD), // TODO
|
: Color(0xFFDDDDDD),
|
||||||
size: 22,
|
size: 22,
|
||||||
).marginOnly(right: 8, bottom: 2),
|
).marginOnly(right: 8, top: 4),
|
||||||
),
|
),
|
||||||
onTap: () => bind.mainUpdateTemporaryPassword(),
|
onTap: () => bind.mainUpdateTemporaryPassword(),
|
||||||
onHover: (value) => refreshHover.value = value,
|
onHover: (value) => refreshHover.value = value,
|
||||||
@ -265,11 +266,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
child: Obx(
|
child: Obx(
|
||||||
() => Icon(
|
() => Icon(
|
||||||
Icons.edit,
|
Icons.edit,
|
||||||
color: editHover.value
|
color:
|
||||||
? textColor
|
editHover.value ? textColor : Color(0xFFDDDDDD),
|
||||||
: Color(0xFFDDDDDD), // TODO
|
|
||||||
size: 22,
|
size: 22,
|
||||||
).marginOnly(right: 8, bottom: 2),
|
).marginOnly(right: 8, top: 4),
|
||||||
),
|
),
|
||||||
onTap: () => DesktopSettingPage.switch2page(1),
|
onTap: () => DesktopSettingPage.switch2page(1),
|
||||||
onHover: (value) => editHover.value = value,
|
onHover: (value) => editHover.value = value,
|
||||||
|
@ -4,5 +4,5 @@ dart pub global activate ffigen --version 5.0.1
|
|||||||
flutter pub get
|
flutter pub get
|
||||||
# call `flutter clean` if cargo build fails
|
# call `flutter clean` if cargo build fails
|
||||||
# export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
|
# export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
|
||||||
cargo build --features flutter
|
cargo build --features "flutter,flutter_texture_render"
|
||||||
flutter run $@
|
flutter run $@
|
||||||
|
Loading…
Reference in New Issue
Block a user