better connect dialog tips

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-24 16:22:05 +08:00
parent 9bca87a51f
commit 98f24bb85a
35 changed files with 117 additions and 105 deletions

View File

@ -517,9 +517,12 @@ _connectDialog(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Icon(Icons.password_rounded, color: MyTheme.accent), Icon(Icons.password_rounded, color: MyTheme.accent),
Text(translate(usernameController == null (usernameController == null
? 'Password Required' ? Text(translate('Password Required'))
: 'Login Required')) : Tooltip(
message: translate('login_linux_tooltip_tip'),
child: Text(translate('login_linux_tip')),
))
.paddingOnly(left: 10), .paddingOnly(left: 10),
], ],
), ),
@ -538,12 +541,15 @@ _connectDialog(
controller: passwordController, controller: passwordController,
autoFocus: false, autoFocus: false,
), ),
usernameController == null || usernameController == null
? Offstage()
: const Divider(),
peerPasswordController == null peerPasswordController == null
? Offstage() ? Offstage()
: PasswordWidget( : PasswordWidget(
controller: peerPasswordController, controller: peerPasswordController,
autoFocus: usernameController == null, autoFocus: usernameController == null,
hintText: 'Enter RustDesk password', hintText: 'enter_rustdesk_passwd_tip',
), ),
peerPasswordController == null peerPasswordController == null
? Offstage() ? Offstage()
@ -552,7 +558,7 @@ _connectDialog(
dense: true, dense: true,
controlAffinity: ListTileControlAffinity.leading, controlAffinity: ListTileControlAffinity.leading,
title: Text( title: Text(
translate('Remember RustDesk password'), translate('remember_rustdesk_passwd_tip'),
), ),
value: remember, value: remember,
onChanged: (v) { onChanged: (v) {

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "此文件与对方的一致"), ("identical_file_tip", "此文件与对方的一致"),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", "浏览模式"), ("View Mode", "浏览模式"),
("Enter RustDesk password", "请输入 RustDesk 密码"), ("enter_rustdesk_passwd_tip", "请输入 RustDesk 密码"),
("Remember RustDesk password", "记住 RustDesk 密码"), ("remember_rustdesk_passwd_tip", "记住 RustDesk 密码"),
("Login Required", "需要登陆"), ("login_linux_tip", "登陆被控端的 Linux 账户"),
("login_linux_tooltip_tip", "登陆被控端的 Linux 账户,才能启用 X 桌面"),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Diese Datei ist identisch mit der Datei der Gegenstelle."), ("identical_file_tip", "Diese Datei ist identisch mit der Datei der Gegenstelle."),
("show_monitors_tip", "Monitore in der Symbolleiste anzeigen"), ("show_monitors_tip", "Monitore in der Symbolleiste anzeigen"),
("View Mode", "Ansichtsmodus"), ("View Mode", "Ansichtsmodus"),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Το αρχείο είναι πανομοιότυπο με αυτό του άλλου υπολογιστή."), ("identical_file_tip", "Το αρχείο είναι πανομοιότυπο με αυτό του άλλου υπολογιστή."),
("show_monitors_tip", "Εμφάνιση οθονών στη γραμμή εργαλείων"), ("show_monitors_tip", "Εμφάνιση οθονών στη γραμμή εργαλείων"),
("View Mode", "Λειτουργία προβολής"), ("View Mode", "Λειτουργία προβολής"),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -53,6 +53,10 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("empty_lan_tip", "Oh no, it looks like we haven't discovered any peers yet."), ("empty_lan_tip", "Oh no, it looks like we haven't discovered any peers yet."),
("empty_address_book_tip", "Oh dear, it appears that there are currently no peers listed in your address book."), ("empty_address_book_tip", "Oh dear, it appears that there are currently no peers listed in your address book."),
("identical_file_tip", "This file is identical with the peer's one."), ("identical_file_tip", "This file is identical with the peer's one."),
("show_monitors_tip", "Show monitors in toolbar") ("show_monitors_tip", "Show monitors in toolbar."),
("enter_rustdesk_passwd_tip", "Enter RustDesk password."),
("remember_rustdesk_passwd_tip", "Remember RustDesk password."),
("login_linux_tip", "Login to remote Linux account"),
("login_linux_tooltip_tip", "You need to login to remote Linux account to enable a X desktop session."),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Este archivo es idéntico al del par."), ("identical_file_tip", "Este archivo es idéntico al del par."),
("show_monitors_tip", "Mostrar monitores en la barra de herramientas"), ("show_monitors_tip", "Mostrar monitores en la barra de herramientas"),
("View Mode", "Modo Vista"), ("View Mode", "Modo Vista"),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "این فایل با فایل همتا یکسان است."), ("identical_file_tip", "این فایل با فایل همتا یکسان است."),
("show_monitors_tip", "نمایش مانیتورها در نوار ابزار"), ("show_monitors_tip", "نمایش مانیتورها در نوار ابزار"),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Questo file è identico a quello del peer."), ("identical_file_tip", "Questo file è identico a quello del peer."),
("show_monitors_tip", "Mostra schermi nella barra degli strumenti"), ("show_monitors_tip", "Mostra schermi nella barra degli strumenti"),
("View Mode", "Modalità di visualizzazione"), ("View Mode", "Modalità di visualizzazione"),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Файл идентичен файлу на удалённом узле."), ("identical_file_tip", "Файл идентичен файлу на удалённом узле."),
("show_monitors_tip", "Показывать мониторы на панели инструментов"), ("show_monitors_tip", "Показывать мониторы на панели инструментов"),
("View Mode", "Режим просмотра"), ("View Mode", "Режим просмотра"),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
("login_linux_tooltip_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "此檔案與對方的檔案一致"), ("identical_file_tip", "此檔案與對方的檔案一致"),
("show_monitors_tip", "在工具列中顯示顯示器"), ("show_monitors_tip", "在工具列中顯示顯示器"),
("View Mode", "瀏覽模式"), ("View Mode", "瀏覽模式"),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""), ("identical_file_tip", ""),
("show_monitors_tip", ""), ("show_monitors_tip", ""),
("View Mode", ""), ("View Mode", ""),
("Enter RustDesk password", ""), ("enter_rustdesk_passwd_tip", ""),
("Remember RustDesk password", ""), ("remember_rustdesk_passwd_tip", ""),
("Login Required", ""), ("login_linux_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }