diff --git a/lib/ui/home/home_ui.dart b/lib/ui/home/home_ui.dart index 0ed3356..8a713e1 100644 --- a/lib/ui/home/home_ui.dart +++ b/lib/ui/home/home_ui.dart @@ -232,17 +232,17 @@ class HomeUI extends BaseUI { for (final item in model.scServerStatus ?? []) Row( children: [ - Center( - child: Icon( - item["status"] == "ok" - ? FontAwesomeIcons.circleCheck - : FluentIcons.error, - color: (item["status"] == - "operational" || - item["status"] == "ok") - ? Colors.green - : Colors.red, - size: 18, + SizedBox( + height: 14, + child: Center( + child: Icon( + FontAwesomeIcons.solidCircle, + color: + model.isRSIServerStatusOK(item) + ? Colors.green + : Colors.red, + size: 12, + ), ), ), const SizedBox(width: 3), diff --git a/lib/ui/home/home_ui_model.dart b/lib/ui/home/home_ui_model.dart index b6f008b..5197236 100644 --- a/lib/ui/home/home_ui_model.dart +++ b/lib/ui/home/home_ui_model.dart @@ -465,4 +465,8 @@ class HomeUIModel extends BaseUIModel { isRsiLauncherStarting = false; notifyListeners(); } + + bool isRSIServerStatusOK(Map map) { + return (map["status"] == "ok" || map["status"] == "operational"); + } }