Add screenshot generator

This commit is contained in:
世界
2026-01-08 16:13:20 +08:00
parent 264c4eed81
commit 6b589cb771
57 changed files with 1931 additions and 109 deletions
@@ -41,7 +41,7 @@ public struct OverviewView: View {
}
}
.alert($coordinator.alert)
.disabled(!ApplicationLibrary.inPreview && (!profile.status.isSwitchable || coordinator.reasserting))
.disabled(!Variant.screenshotMode && (!profile.status.isSwitchable || coordinator.reasserting))
}
@ViewBuilder
@@ -85,9 +85,9 @@ public struct OverviewView: View {
private func shouldShowCard(_ card: DashboardCard) -> Bool {
switch card {
case .status, .connections, .uploadTraffic, .downloadTraffic, .clashMode:
return ApplicationLibrary.inPreview || profile.status.isConnected
return Variant.screenshotMode || profile.status.isConnected
case .httpProxy:
return (ApplicationLibrary.inPreview || profile.status.isConnectedStrict) && systemProxyAvailable
return (Variant.screenshotMode || profile.status.isConnectedStrict) && systemProxyAvailable
case .profile:
return true
}