mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
refact, win, clipboard, notify callback, tmp commit
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -998,6 +998,16 @@ Widget msgboxIcon(String type) {
|
||||
|
||||
// title should be null
|
||||
Widget msgboxContent(String type, String title, String text) {
|
||||
String translateText(String text) {
|
||||
List<String> words = text.split(' ');
|
||||
if (words.isNotEmpty && words[0].endsWith('_tip')) {
|
||||
words[0] = translate(words[0]);
|
||||
return words.join(' ');
|
||||
} else {
|
||||
return translate(text);
|
||||
}
|
||||
}
|
||||
|
||||
return Row(
|
||||
children: [
|
||||
msgboxIcon(type),
|
||||
@@ -1009,7 +1019,7 @@ Widget msgboxContent(String type, String title, String text) {
|
||||
translate(title),
|
||||
style: TextStyle(fontSize: 21),
|
||||
).marginOnly(bottom: 10),
|
||||
Text(translate(text), style: const TextStyle(fontSize: 15)),
|
||||
Text(translateText(text), style: const TextStyle(fontSize: 15)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user