mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-04 23:01:28 +03:00
Unify button style for desktop
This commit is contained in:
@@ -500,12 +500,14 @@ class OverlayDialogManager {
|
|||||||
Offstage(
|
Offstage(
|
||||||
offstage: !showCancel,
|
offstage: !showCancel,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: TextButton(
|
child: isDesktop
|
||||||
style: flatButtonStyle,
|
? dialogButton('Cancel', onPressed: cancel)
|
||||||
onPressed: cancel,
|
: TextButton(
|
||||||
child: Text(translate('Cancel'),
|
style: flatButtonStyle,
|
||||||
style:
|
onPressed: cancel,
|
||||||
const TextStyle(color: MyTheme.accent)))))
|
child: Text(translate('Cancel'),
|
||||||
|
style: const TextStyle(
|
||||||
|
color: MyTheme.accent)))))
|
||||||
])),
|
])),
|
||||||
onCancel: showCancel ? cancel : null,
|
onCancel: showCancel ? cancel : null,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user