From 7cecf32d9ef8279bc5feca8670a38e860f3faa19 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 21 Sep 2022 19:18:40 +0800 Subject: [PATCH] better warn icon --- flutter/lib/desktop/pages/desktop_setting_page.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/flutter/lib/desktop/pages/desktop_setting_page.dart b/flutter/lib/desktop/pages/desktop_setting_page.dart index d59320504..f79d58b50 100644 --- a/flutter/lib/desktop/pages/desktop_setting_page.dart +++ b/flutter/lib/desktop/pages/desktop_setting_page.dart @@ -348,7 +348,7 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin { permissions(context), password(context), _Card(title: 'ID', children: [changeId()]), - connection(context), + more(context), ]), ), ], @@ -462,13 +462,13 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin { }))); } - Widget connection(BuildContext context) { + Widget more(BuildContext context) { bool enabled = !locked; return _Card(title: 'Security', children: [ _OptionCheckBox(context, 'Deny remote access', 'stop-service', checkedIcon: const Icon( - Icons.warning, - color: Colors.yellowAccent, + Icons.warning_amber_rounded, + color: Color.fromARGB(255, 255, 204, 0), ), enabled: enabled), Offstage( @@ -571,7 +571,8 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin { .marginOnly(right: 5), Offstage( offstage: !hasWhitelist.value, - child: const Icon(Icons.warning, color: Colors.yellowAccent) + child: const Icon(Icons.warning_amber_rounded, + color: Color.fromARGB(255, 255, 204, 0)) .marginOnly(right: 5), ), Expanded(