mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-28 15:49:04 +08:00
Merge pull request #3626 from 21pages/fix
add elevation for remote menubar
This commit is contained in:
commit
7d73243b16
@ -331,7 +331,7 @@ class QualityMonitor extends StatelessWidget {
|
||||
Expanded(
|
||||
flex: 8,
|
||||
child: AutoSizeText(info,
|
||||
style: TextStyle(color: MyTheme.darkGray),
|
||||
style: TextStyle(color: Color.fromARGB(255, 210, 210, 210)),
|
||||
textAlign: TextAlign.right,
|
||||
maxLines: 1)),
|
||||
Spacer(flex: 1),
|
||||
@ -353,7 +353,7 @@ class QualityMonitor extends StatelessWidget {
|
||||
? Container(
|
||||
constraints: BoxConstraints(maxWidth: 200),
|
||||
padding: const EdgeInsets.all(8),
|
||||
color: MyTheme.canvasColor.withAlpha(120),
|
||||
color: MyTheme.canvasColor.withAlpha(150),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
@ -108,6 +108,7 @@ class _MenubarTheme {
|
||||
static const double buttonHMargin = 3;
|
||||
static const double buttonVMargin = 6;
|
||||
static const double iconRadius = 8;
|
||||
static const double elevation = 3;
|
||||
}
|
||||
|
||||
typedef DismissFunc = void Function();
|
||||
@ -369,10 +370,13 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
|
||||
alignment: FractionalOffset(_fractionX.value, 0),
|
||||
child: Offstage(
|
||||
offstage: _dragging.isTrue,
|
||||
child: _DraggableShowHide(
|
||||
dragging: _dragging,
|
||||
fractionX: _fractionX,
|
||||
show: show,
|
||||
child: Material(
|
||||
elevation: _MenubarTheme.elevation,
|
||||
child: _DraggableShowHide(
|
||||
dragging: _dragging,
|
||||
fractionX: _fractionX,
|
||||
show: show,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
@ -406,15 +410,14 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.all(Radius.circular(4.0)),
|
||||
color: Theme.of(context)
|
||||
.menuBarTheme
|
||||
.style
|
||||
?.backgroundColor
|
||||
?.resolve(MaterialState.values.toSet()),
|
||||
),
|
||||
Material(
|
||||
elevation: _MenubarTheme.elevation,
|
||||
borderRadius: BorderRadius.all(Radius.circular(4.0)),
|
||||
color: Theme.of(context)
|
||||
.menuBarTheme
|
||||
.style
|
||||
?.backgroundColor
|
||||
?.resolve(MaterialState.values.toSet()),
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Theme(
|
||||
|
Loading…
Reference in New Issue
Block a user