mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
optimize dialog margin, fix password eye icon color
This commit is contained in:
@@ -694,7 +694,6 @@ void msgBox(String id, String type, String title, String text, String link,
|
||||
buttons.insert(
|
||||
0, dialogButton('Cancel', onPressed: cancel, isOutline: true));
|
||||
}
|
||||
// TODO: test this button
|
||||
if (type.contains("hasclose")) {
|
||||
buttons.insert(
|
||||
0,
|
||||
@@ -708,8 +707,7 @@ void msgBox(String id, String type, String title, String text, String link,
|
||||
dialogManager.show(
|
||||
(setState, close) => CustomAlertDialog(
|
||||
title: null,
|
||||
content: SelectionArea(
|
||||
child: msgboxContent(type, title, text).paddingOnly(bottom: 10)),
|
||||
content: SelectionArea(child: msgboxContent(type, title, text)),
|
||||
actions: buttons,
|
||||
onSubmit: hasOk ? submit : null,
|
||||
onCancel: hasCancel == true ? cancel : null,
|
||||
@@ -774,7 +772,7 @@ Widget msgboxContent(String type, String title, String text) {
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
).marginOnly(bottom: 12);
|
||||
}
|
||||
|
||||
void msgBoxCommon(OverlayDialogManager dialogManager, String title,
|
||||
@@ -1714,4 +1712,4 @@ Future<void> updateSystemWindowTheme() async {
|
||||
: SystemWindowTheme.dark);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user