fix status

This commit is contained in:
xkeyC 2023-10-18 22:34:29 +08:00
parent f4f14655d5
commit bdf4026e91
2 changed files with 6 additions and 3 deletions

View File

@ -237,13 +237,15 @@ class HomeUI extends BaseUI<HomeUIModel> {
item["status"] == "ok"
? FontAwesomeIcons.circleCheck
: FluentIcons.error,
color: item["status"] == "ok"
color: (item["status"] ==
"operational" ||
item["status"] == "ok")
? Colors.green
: Colors.red,
size: 20,
size: 18,
),
),
const SizedBox(width: 4),
const SizedBox(width: 3),
Text(
"${model.statusCnName[item["name"]] ?? item["name"]}",
style: const TextStyle(fontSize: 13),

View File

@ -55,6 +55,7 @@ class HomeUIModel extends BaseUIModel {
"Platform": "平台",
"Persistent Universe": "持续宇宙",
"Electronic Access": "电子访问",
"Arena Commander": "竞技场指挥官"
};
bool isRsiLauncherStarting = false;