feat: update README assets, refine feature views and design tokens

Replace incorrect README icon with actual Atlas app icon, add new
screenshots (about, settings, privilege), improve feature view
responsiveness and empty states, adjust design system brand tokens
and localization strings, add icon generation script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
zhukang
2026-03-11 16:40:28 +08:00
parent 365bf77ca6
commit 96168fa24f
21 changed files with 901 additions and 852 deletions

View File

@@ -3,6 +3,8 @@ import AtlasDomain
import SwiftUI
public struct SmartCleanFeatureView: View {
@Environment(\.atlasContentWidth) private var contentWidth
private let findings: [Finding]
private let plan: ActionPlan
private let scanSummary: String
@@ -49,7 +51,8 @@ public struct SmartCleanFeatureView: View {
public var body: some View {
AtlasScreen(
title: AtlasL10n.string("smartclean.screen.title"),
subtitle: AtlasL10n.string("smartclean.screen.subtitle")
subtitle: AtlasL10n.string("smartclean.screen.subtitle"),
maxContentWidth: AtlasLayout.maxWorkflowWidth
) {
AtlasCallout(
title: statusTitle,
@@ -106,7 +109,7 @@ public struct SmartCleanFeatureView: View {
}
}
LazyVGrid(columns: AtlasLayout.metricColumns, spacing: AtlasSpacing.lg) {
LazyVGrid(columns: metricColumns, spacing: AtlasSpacing.lg) {
AtlasMetricCard(
title: AtlasL10n.string("smartclean.metric.previewSize.title"),
value: AtlasFormatters.byteCount(resolvedPlanEstimatedBytes),
@@ -222,6 +225,10 @@ public struct SmartCleanFeatureView: View {
}
}
private var metricColumns: [GridItem] {
AtlasLayout.adaptiveMetricColumns(for: contentWidth)
}
@ViewBuilder
private func riskSection(_ risk: RiskLevel) -> some View {
let items = findings.filter { $0.risk == risk }
@@ -595,4 +602,3 @@ private enum SmartCleanPrimaryAction: Equatable {
}
}
}