feat(process): 增加搜索清空与右键复制菜单
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user