mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-17 09:41:28 +03:00
Fix/custom client styles (#7373)
* Fix. qs styles Signed-off-by: fufesou <shuanglongchen@yeah.net> * custom client, options Signed-off-by: fufesou <shuanglongchen@yeah.net> * Move logo.svg to icon.svg Signed-off-by: fufesou <shuanglongchen@yeah.net> * Refact. Custom client, connection status ui. Signed-off-by: fufesou <shuanglongchen@yeah.net> * Custom client ui. Disable settings, hide "Change password" Signed-off-by: fufesou <shuanglongchen@yeah.net> * Custom client, logo align center Signed-off-by: fufesou <shuanglongchen@yeah.net> * Custom client, refact, outgoing ui Signed-off-by: fufesou <shuanglongchen@yeah.net> * Custom client, outgoing, settings icon Signed-off-by: fufesou <shuanglongchen@yeah.net> * Custom client, powered by RustDesk Signed-off-by: fufesou <shuanglongchen@yeah.net> * Custom client, remove unused SizeBox Signed-off-by: fufesou <shuanglongchen@yeah.net> * Update config.rs * Update flutter_ffi.rs --------- Signed-off-by: fufesou <shuanglongchen@yeah.net> Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
@@ -106,39 +106,32 @@ class _DesktopSettingPageState extends State<DesktopSettingPage>
|
||||
List<_TabInfo> _settingTabs() {
|
||||
final List<_TabInfo> settingTabs = <_TabInfo>[
|
||||
_TabInfo('General', Icons.settings_outlined, Icons.settings),
|
||||
_TabInfo('Security', Icons.enhanced_encryption_outlined,
|
||||
Icons.enhanced_encryption),
|
||||
if (!bind.isOutgoingOnly())
|
||||
_TabInfo('Security', Icons.enhanced_encryption_outlined,
|
||||
Icons.enhanced_encryption),
|
||||
_TabInfo('Network', Icons.link_outlined, Icons.link),
|
||||
_TabInfo('Account', Icons.person_outline, Icons.person),
|
||||
if (!bind.isIncomingOnly())
|
||||
_TabInfo(
|
||||
'Display', Icons.desktop_windows_outlined, Icons.desktop_windows),
|
||||
if (!bind.isIncomingOnly() && bind.pluginFeatureIsEnabled())
|
||||
_TabInfo('Plugin', Icons.extension_outlined, Icons.extension),
|
||||
if (!bind.isDisableAccount())
|
||||
_TabInfo('Account', Icons.person_outline, Icons.person),
|
||||
_TabInfo('About', Icons.info_outline, Icons.info)
|
||||
];
|
||||
if (!bind.isIncomingOnly()) {
|
||||
settingTabs.insert(
|
||||
3,
|
||||
_TabInfo('Display', Icons.desktop_windows_outlined,
|
||||
Icons.desktop_windows));
|
||||
if (bind.pluginFeatureIsEnabled()) {
|
||||
settingTabs.insert(
|
||||
4, _TabInfo('Plugin', Icons.extension_outlined, Icons.extension));
|
||||
}
|
||||
}
|
||||
return settingTabs;
|
||||
}
|
||||
|
||||
List<Widget> _children() {
|
||||
final children = [
|
||||
_General(),
|
||||
_Safety(),
|
||||
if (!bind.isOutgoingOnly()) _Safety(),
|
||||
_Network(),
|
||||
_Account(),
|
||||
if (!bind.isIncomingOnly()) _Display(),
|
||||
if (!bind.isIncomingOnly() && bind.pluginFeatureIsEnabled()) _Plugin(),
|
||||
if (!bind.isDisableAccount()) _Account(),
|
||||
_About(),
|
||||
];
|
||||
if (!bind.isIncomingOnly()) {
|
||||
children.insert(3, _Display());
|
||||
if (bind.pluginFeatureIsEnabled()) {
|
||||
children.insert(4, _Plugin());
|
||||
}
|
||||
}
|
||||
return children;
|
||||
}
|
||||
|
||||
@@ -309,6 +302,10 @@ class _GeneralState extends State<_General> {
|
||||
}
|
||||
|
||||
Widget service() {
|
||||
if (bind.isOutgoingOnly()) {
|
||||
return const Offstage();
|
||||
}
|
||||
|
||||
return _Card(title: 'Service', children: [
|
||||
Obx(() => _Button(serviceStop.value ? 'Start' : 'Stop', () {
|
||||
() async {
|
||||
@@ -324,18 +321,14 @@ class _GeneralState extends State<_General> {
|
||||
}
|
||||
|
||||
Widget other() {
|
||||
final children = <Widget>[];
|
||||
if (!bind.isIncomingOnly()) {
|
||||
children.add(_OptionCheckBox(context,
|
||||
'Confirm before closing multiple tabs', 'enable-confirm-closing-tabs',
|
||||
isServer: false));
|
||||
}
|
||||
children.addAll([
|
||||
final children = <Widget>[
|
||||
if (!bind.isIncomingOnly())
|
||||
_OptionCheckBox(context, 'Confirm before closing multiple tabs',
|
||||
'enable-confirm-closing-tabs',
|
||||
isServer: false),
|
||||
_OptionCheckBox(context, 'Adaptive bitrate', 'enable-abr'),
|
||||
wallpaper()
|
||||
]);
|
||||
if (!bind.isIncomingOnly()) {
|
||||
children.addAll([
|
||||
wallpaper(),
|
||||
if (!bind.isIncomingOnly()) ...[
|
||||
_OptionCheckBox(
|
||||
context,
|
||||
'Open connection in new tab',
|
||||
@@ -354,8 +347,8 @@ class _GeneralState extends State<_General> {
|
||||
'enable-check-update',
|
||||
isServer: false,
|
||||
)
|
||||
]);
|
||||
}
|
||||
],
|
||||
];
|
||||
if (bind.mainShowOption(key: 'allow-linux-headless')) {
|
||||
children.add(_OptionCheckBox(
|
||||
context, 'Allow linux headless', 'allow-linux-headless'));
|
||||
@@ -364,6 +357,10 @@ class _GeneralState extends State<_General> {
|
||||
}
|
||||
|
||||
Widget wallpaper() {
|
||||
if (bind.isOutgoingOnly()) {
|
||||
return const Offstage();
|
||||
}
|
||||
|
||||
return futureBuilder(future: () async {
|
||||
final support = await bind.mainSupportRemoveWallpaper();
|
||||
return support;
|
||||
@@ -411,6 +408,10 @@ class _GeneralState extends State<_General> {
|
||||
}
|
||||
|
||||
Widget audio(BuildContext context) {
|
||||
if (bind.isOutgoingOnly()) {
|
||||
return const Offstage();
|
||||
}
|
||||
|
||||
String getDefault() {
|
||||
if (Platform.isWindows) return translate('System Sound');
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user