mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
Unify button style for desktop
This commit is contained in:
parent
536498f83c
commit
4cddaa4f0c
@ -500,12 +500,14 @@ class OverlayDialogManager {
|
||||
Offstage(
|
||||
offstage: !showCancel,
|
||||
child: Center(
|
||||
child: TextButton(
|
||||
style: flatButtonStyle,
|
||||
onPressed: cancel,
|
||||
child: Text(translate('Cancel'),
|
||||
style:
|
||||
const TextStyle(color: MyTheme.accent)))))
|
||||
child: isDesktop
|
||||
? dialogButton('Cancel', onPressed: cancel)
|
||||
: TextButton(
|
||||
style: flatButtonStyle,
|
||||
onPressed: cancel,
|
||||
child: Text(translate('Cancel'),
|
||||
style: const TextStyle(
|
||||
color: MyTheme.accent)))))
|
||||
])),
|
||||
onCancel: showCancel ? cancel : null,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user