misc: traffic topic

This commit is contained in:
mrFq1
2023-05-11 10:13:06 +08:00
parent 320fb6c0f7
commit d78ce96dac

View File

@@ -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()
}