mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
rename to "accept and elevate" button
This commit is contained in:
@@ -759,13 +759,14 @@ class _CmControlPanel extends StatelessWidget {
|
||||
handleElevate(context);
|
||||
windowManager.minimize();
|
||||
},
|
||||
text: 'Accept',
|
||||
text: 'Accept and Elevate',
|
||||
icon: Icon(
|
||||
Icons.security_rounded,
|
||||
color: Colors.white,
|
||||
size: 14,
|
||||
),
|
||||
textColor: Colors.white),
|
||||
textColor: Colors.white,
|
||||
tooltip: 'accept_and_elevate_btn_tooltip'),
|
||||
),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
@@ -803,15 +804,14 @@ class _CmControlPanel extends StatelessWidget {
|
||||
).marginOnly(bottom: buttonBottomMargin);
|
||||
}
|
||||
|
||||
Widget buildButton(
|
||||
BuildContext context, {
|
||||
required Color? color,
|
||||
required Function() onClick,
|
||||
Icon? icon,
|
||||
BoxBorder? border,
|
||||
required String text,
|
||||
required Color? textColor,
|
||||
}) {
|
||||
Widget buildButton(BuildContext context,
|
||||
{required Color? color,
|
||||
required Function() onClick,
|
||||
Icon? icon,
|
||||
BoxBorder? border,
|
||||
required String text,
|
||||
required Color? textColor,
|
||||
String? tooltip}) {
|
||||
Widget textWidget;
|
||||
if (icon != null) {
|
||||
textWidget = Text(
|
||||
@@ -829,7 +829,7 @@ class _CmControlPanel extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
final borderRadius = BorderRadius.circular(10.0);
|
||||
return Container(
|
||||
final btn = Container(
|
||||
height: 28,
|
||||
decoration: BoxDecoration(
|
||||
color: color, borderRadius: borderRadius, border: border),
|
||||
@@ -844,7 +844,14 @@ class _CmControlPanel extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
).marginAll(4);
|
||||
);
|
||||
return (tooltip != null
|
||||
? Tooltip(
|
||||
message: translate(tooltip),
|
||||
child: btn,
|
||||
)
|
||||
: btn)
|
||||
.marginAll(4);
|
||||
}
|
||||
|
||||
void handleDisconnect() {
|
||||
|
||||
Reference in New Issue
Block a user