Add screenshot generator
This commit is contained in:
@@ -11,7 +11,7 @@ public struct ConnectionsCard: View {
|
||||
DashboardCardView(title: "", isHalfWidth: true) {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
DashboardCardHeader(icon: "link.circle.fill", title: "Connections")
|
||||
if ApplicationLibrary.inPreview {
|
||||
if Variant.screenshotMode {
|
||||
DashboardCardLine(String(localized: "Inbound"), "34")
|
||||
DashboardCardLine(String(localized: "Outbound"), "28")
|
||||
} else if let message = commandClient.status {
|
||||
|
||||
@@ -12,7 +12,7 @@ public struct DownloadTrafficCard: View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
DashboardCardHeader(icon: "arrow.down.circle.fill", title: "Download")
|
||||
|
||||
if ApplicationLibrary.inPreview {
|
||||
if Variant.screenshotMode {
|
||||
Text("249 MB/s")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
|
||||
@@ -11,7 +11,7 @@ public struct StatusCard: View {
|
||||
DashboardCardView(title: "", isHalfWidth: true) {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
DashboardCardHeader(icon: "info.circle.fill", title: "Status")
|
||||
if ApplicationLibrary.inPreview {
|
||||
if Variant.screenshotMode {
|
||||
DashboardCardLine(String(localized: "Memory"), "6.4 MB")
|
||||
DashboardCardLine(String(localized: "Goroutines"), "89")
|
||||
} else if let message = commandClient.status {
|
||||
|
||||
@@ -12,7 +12,7 @@ public struct UploadTrafficCard: View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
DashboardCardHeader(icon: "arrow.up.circle.fill", title: "Upload")
|
||||
|
||||
if ApplicationLibrary.inPreview {
|
||||
if Variant.screenshotMode {
|
||||
Text("38 B/s")
|
||||
.font(.title2)
|
||||
.fontWeight(.medium)
|
||||
|
||||
Reference in New Issue
Block a user