perf(efficiency): 落实首批采样减负与发行包瘦身
This commit is contained in:
@@ -109,7 +109,6 @@ extension MenuPanelView {
|
||||
HStack(spacing: 8) {
|
||||
Text(title).font(PanelStyle.label).frame(width: 100, alignment: .leading)
|
||||
MetricProgressBar(value: value ?? 0, color: color).frame(height: 5)
|
||||
.animation(reduceMotion ? nil : .easeInOut(duration: min(0.35, chartInterval * 0.8)), value: value)
|
||||
AnimatedMetricText(value: MetricFormat.percent(value)).font(PanelStyle.value).frame(width: 30, alignment: .trailing)
|
||||
}.font(PanelStyle.label)
|
||||
}
|
||||
@@ -286,7 +285,6 @@ struct EnergyProcessListRow: View {
|
||||
.clipShape(Capsule())
|
||||
}
|
||||
.frame(height: 4)
|
||||
.animation(.easeInOut(duration: 0.35), value: process.cpu)
|
||||
AnimatedMetricText(value: process.cpu.map { String(format: "%.1f%%", $0 * 100) } ?? "--")
|
||||
.foregroundStyle(Color("MetricCPU")).font(PanelStyle.value)
|
||||
.monospacedDigit().frame(width: 39, alignment: .trailing)
|
||||
|
||||
Reference in New Issue
Block a user