tools: Network Quality and STUN
This commit is contained in:
@@ -199,11 +199,11 @@ import SwiftUI
|
||||
Spacer()
|
||||
|
||||
if !isProfileCard {
|
||||
Toggle("", isOn: Binding(
|
||||
Toggle(isOn: Binding(
|
||||
get: { isEnabled },
|
||||
set: { _ in onToggle() }
|
||||
))
|
||||
.labelsHidden()
|
||||
)) {}
|
||||
.labelsHidden()
|
||||
}
|
||||
|
||||
Button {
|
||||
|
||||
@@ -13,24 +13,24 @@ public struct DownloadTrafficCard: View {
|
||||
DashboardCardHeader(icon: "arrow.down.circle.fill", title: "Download")
|
||||
|
||||
if Variant.screenshotMode {
|
||||
Text("249 MB/s")
|
||||
Text(verbatim: "249 MB/s")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
Text("5.6 GB")
|
||||
Text(verbatim: "5.6 GB")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
} else if let message = commandClient.status, message.trafficAvailable {
|
||||
Text("\(LibboxFormatBytes(message.downlink))/s")
|
||||
Text(verbatim: "\(LibboxFormatBytes(message.downlink))/s")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
Text(LibboxFormatBytes(message.downlinkTotal))
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
} else {
|
||||
Text("...")
|
||||
Text(verbatim: "...")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
Text("...")
|
||||
Text(verbatim: "...")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public struct HTTPProxyCard: View {
|
||||
HStack {
|
||||
DashboardCardHeader(icon: "network", title: "System HTTP Proxy")
|
||||
Spacer()
|
||||
Toggle("", isOn: $systemProxyEnabled)
|
||||
Toggle(isOn: $systemProxyEnabled) {}
|
||||
.labelsHidden()
|
||||
#if os(macOS)
|
||||
.toggleStyle(.switch)
|
||||
|
||||
@@ -13,24 +13,24 @@ public struct UploadTrafficCard: View {
|
||||
DashboardCardHeader(icon: "arrow.up.circle.fill", title: "Upload")
|
||||
|
||||
if Variant.screenshotMode {
|
||||
Text("38 B/s")
|
||||
Text(verbatim: "38 B/s")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
Text("52 MB")
|
||||
Text(verbatim: "52 MB")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
} else if let message = commandClient.status, message.trafficAvailable {
|
||||
Text("\(LibboxFormatBytes(message.uplink))/s")
|
||||
Text(verbatim: "\(LibboxFormatBytes(message.uplink))/s")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
Text(LibboxFormatBytes(message.uplinkTotal))
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
} else {
|
||||
Text("...")
|
||||
Text(verbatim: "...")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
Text("...")
|
||||
Text(verbatim: "...")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user