mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-13 05:20:28 +08:00
fix(home-ui): align signal icon delay states with formatDelay (#6249)
* fix(ui): align signal icon delay states with formatDelay * docs: changelog.md
This commit is contained in:
parent
c7f5bc4e0d
commit
6f424ebd2b
@ -8,6 +8,7 @@
|
|||||||
- 修复 Linux 通过 GUI 安装服务模式权限不符合预期
|
- 修复 Linux 通过 GUI 安装服务模式权限不符合预期
|
||||||
- 修复 macOS 因网口顺序导致无法正确设置代理
|
- 修复 macOS 因网口顺序导致无法正确设置代理
|
||||||
- 修复恢复休眠后无法操作托盘
|
- 修复恢复休眠后无法操作托盘
|
||||||
|
- 修复首页当前节点图标语义显示不一致
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><strong> ✨ 新增功能 </strong></summary>
|
<summary><strong> ✨ 新增功能 </strong></summary>
|
||||||
|
|||||||
@ -89,9 +89,13 @@ function getSignalIcon(delay: number): {
|
|||||||
text: string;
|
text: string;
|
||||||
color: string;
|
color: string;
|
||||||
} {
|
} {
|
||||||
if (delay < 0)
|
if (delay === -2)
|
||||||
|
return { icon: <SignalNone />, text: "测试中", color: "text.secondary" };
|
||||||
|
if (delay === -1)
|
||||||
return { icon: <SignalNone />, text: "未测试", color: "text.secondary" };
|
return { icon: <SignalNone />, text: "未测试", color: "text.secondary" };
|
||||||
if (delay >= 10000)
|
if (delay > 1e5)
|
||||||
|
return { icon: <SignalError />, text: "错误", color: "error.main" };
|
||||||
|
if (delay === 0 || delay >= 10000)
|
||||||
return { icon: <SignalError />, text: "超时", color: "error.main" };
|
return { icon: <SignalError />, text: "超时", color: "error.main" };
|
||||||
if (delay >= 500)
|
if (delay >= 500)
|
||||||
return { icon: <SignalWeak />, text: "延迟较高", color: "error.main" };
|
return { icon: <SignalWeak />, text: "延迟较高", color: "error.main" };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user