From d78ce96dacf75a75257a05741bbdba5b53565baa Mon Sep 17 00:00:00 2001 From: mrFq1 <1xxbx0il0@mozmail.com> Date: Thu, 11 May 2023 10:13:06 +0800 Subject: [PATCH] misc: traffic topic --- .../Views/ContentTabs/Overview/OverviewView.swift | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ClashX Dashboard/Views/ContentTabs/Overview/OverviewView.swift b/ClashX Dashboard/Views/ContentTabs/Overview/OverviewView.swift index 34be6c3..7484e72 100644 --- a/ClashX Dashboard/Views/ContentTabs/Overview/OverviewView.swift +++ b/ClashX Dashboard/Views/ContentTabs/Overview/OverviewView.swift @@ -23,7 +23,18 @@ struct OverviewView: View { OverviewTopItemView(name: "Active Connections", value: $data.activeConns) } - + HStack { + RoundedRectangle(cornerRadius: 2) + .fill(Color(nsColor: .systemBlue)) + .frame(width: 20, height: 13) + Text("Down") + + RoundedRectangle(cornerRadius: 2) + .fill(Color(nsColor: .systemGreen)) + .frame(width: 20, height: 13) + Text("Up") + } + TrafficGraphView(values: $data.downloadHistories, graphColor: .systemBlue) @@ -31,7 +42,6 @@ struct OverviewView: View { TrafficGraphView(values: $data.uploadHistories, graphColor: .systemGreen) - }.padding() }