feat(process): 增加搜索清空与右键复制菜单

This commit is contained in:
2026-11-03 19:33:57 +08:00
parent 1b903efb5c
commit 9f0d1659a8
5 changed files with 132 additions and 10 deletions
@@ -34,9 +34,9 @@ struct MemoryDetailsView: View {
@ViewBuilder private var pressure: some View {
switch memory.pressure {
case 1: Label("pressure.normal", systemImage: "circle.fill").foregroundStyle(Color("MetricCPU"))
case 2: Label("pressure.warning", systemImage: "circle.fill").foregroundStyle(.orange)
case 4: Label("pressure.critical", systemImage: "circle.fill").foregroundStyle(.red)
case 1: Text("pressure.normal").foregroundStyle(Color("MetricCPU"))
case 2: Text("pressure.warning").foregroundStyle(.orange)
case 4: Text("pressure.critical").foregroundStyle(.red)
default: Text(verbatim: "--").foregroundStyle(.secondary)
}
}