update ui

This commit is contained in:
arm64v8a
2023-06-05 14:34:15 +09:00
parent 1e9fa7eab4
commit 292a36eefb
18 changed files with 237 additions and 162 deletions

View File

@@ -136,12 +136,11 @@ namespace NekoGui {
if (latency < 0) {
return Qt::red;
} else if (latency > 0) {
if (latency < 100) {
auto greenMs = dataStore->test_latency_url.startsWith("https://") ? 200 : 100;
if (latency < greenMs) {
return Qt::darkGreen;
} else if (latency < 200) {
return Qt::darkYellow;
} else {
return Qt::red;
return Qt::darkYellow;
}
} else {
return {};