adjust geometry
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
760ab51919
commit
f47254c5e2
@ -93,8 +93,8 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
buildIDBoard(BuildContext context) {
|
buildIDBoard(BuildContext context) {
|
||||||
final model = gFFI.serverModel;
|
final model = gFFI.serverModel;
|
||||||
return Container(
|
return Container(
|
||||||
margin: const EdgeInsets.only(left: 20, right: 16),
|
margin: const EdgeInsets.only(left: 20, right: 11),
|
||||||
height: 52,
|
height: 57,
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.baseline,
|
crossAxisAlignment: CrossAxisAlignment.baseline,
|
||||||
textBaseline: TextBaseline.alphabetic,
|
textBaseline: TextBaseline.alphabetic,
|
||||||
@ -102,10 +102,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
Container(
|
Container(
|
||||||
width: 2,
|
width: 2,
|
||||||
decoration: const BoxDecoration(color: MyTheme.accent),
|
decoration: const BoxDecoration(color: MyTheme.accent),
|
||||||
),
|
).marginOnly(top: 5),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 8.0),
|
padding: const EdgeInsets.only(left: 7),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
@ -120,7 +120,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: MyTheme.color(context).lightText),
|
color: MyTheme.color(context).lightText),
|
||||||
),
|
).marginOnly(top: 5),
|
||||||
buildPopupMenu(context)
|
buildPopupMenu(context)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -137,7 +137,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
readOnly: true,
|
readOnly: true,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
contentPadding: EdgeInsets.only(bottom: 18),
|
contentPadding: EdgeInsets.only(bottom: 20),
|
||||||
),
|
),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
@ -244,7 +244,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
},
|
},
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => CircleAvatar(
|
() => CircleAvatar(
|
||||||
radius: 12,
|
radius: 15,
|
||||||
backgroundColor: hover.value
|
backgroundColor: hover.value
|
||||||
? MyTheme.color(context).grayBg!
|
? MyTheme.color(context).grayBg!
|
||||||
: MyTheme.color(context).bg!,
|
: MyTheme.color(context).bg!,
|
||||||
@ -277,7 +277,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 8.0),
|
padding: const EdgeInsets.only(left: 7),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
@ -303,7 +303,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
readOnly: true,
|
readOnly: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
contentPadding: EdgeInsets.only(bottom: 8),
|
contentPadding: EdgeInsets.only(bottom: 2),
|
||||||
),
|
),
|
||||||
style: TextStyle(fontSize: 15),
|
style: TextStyle(fontSize: 15),
|
||||||
),
|
),
|
||||||
@ -317,7 +317,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
? MyTheme.color(context).text
|
? MyTheme.color(context).text
|
||||||
: Color(0xFFDDDDDD),
|
: Color(0xFFDDDDDD),
|
||||||
size: 22,
|
size: 22,
|
||||||
).marginOnly(right: 10, bottom: 8),
|
).marginOnly(right: 8, bottom: 2),
|
||||||
),
|
),
|
||||||
onTap: () => bind.mainUpdateTemporaryPassword(),
|
onTap: () => bind.mainUpdateTemporaryPassword(),
|
||||||
onHover: (value) => refreshHover.value = value,
|
onHover: (value) => refreshHover.value = value,
|
||||||
@ -425,13 +425,13 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
color: editHover.value
|
color: editHover.value
|
||||||
? MyTheme.color(context).text
|
? MyTheme.color(context).text
|
||||||
: Color(0xFFDDDDDD))
|
: Color(0xFFDDDDDD))
|
||||||
.marginOnly(bottom: 8)));
|
.marginOnly(bottom: 2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTip(BuildContext context) {
|
buildTip(BuildContext context) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.only(left: 20.0, right: 16, top: 16.0, bottom: 14),
|
const EdgeInsets.only(left: 20.0, right: 16, top: 16.0, bottom: 5),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
@ -49,7 +49,7 @@ class _DesktopSettingPageState extends State<DesktopSettingPage>
|
|||||||
'Display', Icons.desktop_windows_outlined, Icons.desktop_windows_sharp),
|
'Display', Icons.desktop_windows_outlined, Icons.desktop_windows_sharp),
|
||||||
_TabInfo('Audio', Icons.volume_up_outlined, Icons.volume_up_sharp),
|
_TabInfo('Audio', Icons.volume_up_outlined, Icons.volume_up_sharp),
|
||||||
_TabInfo('Connection', Icons.link_outlined, Icons.link_sharp),
|
_TabInfo('Connection', Icons.link_outlined, Icons.link_sharp),
|
||||||
_TabInfo('About RustDesk', Icons.info_outline, Icons.info_sharp)
|
_TabInfo('About', Icons.info_outline, Icons.info_sharp)
|
||||||
];
|
];
|
||||||
|
|
||||||
late PageController controller;
|
late PageController controller;
|
||||||
@ -714,7 +714,7 @@ class _AboutState extends State<_About> {
|
|||||||
],
|
],
|
||||||
).marginOnly(left: _kContentHMargin)
|
).marginOnly(left: _kContentHMargin)
|
||||||
]),
|
]),
|
||||||
]).marginOnly(left: _kCardLeftMargin);
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ class _PeerCard extends StatefulWidget {
|
|||||||
class _PeerCardState extends State<_PeerCard>
|
class _PeerCardState extends State<_PeerCard>
|
||||||
with AutomaticKeepAliveClientMixin {
|
with AutomaticKeepAliveClientMixin {
|
||||||
var _menuPos = RelativeRect.fill;
|
var _menuPos = RelativeRect.fill;
|
||||||
final double _cardRadis = 20;
|
final double _cardRadis = 16;
|
||||||
final double _borderWidth = 2;
|
final double _borderWidth = 2;
|
||||||
final RxBool _iconMoreHover = false.obs;
|
final RxBool _iconMoreHover = false.obs;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user