refactor(menubar): 固定品牌图标并同步开发进度文档
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
enum MenuBarLabel {
|
||||
static func title(for snapshot: MetricsSnapshot) -> String {
|
||||
var items = ["CPU \(MetricFormat.percent(snapshot.cpu?.usage))"]
|
||||
if let gpu = snapshot.gpuUsage {
|
||||
items.append("GPU \(MetricFormat.percent(gpu))")
|
||||
}
|
||||
items.append("MEM \(MetricFormat.percent(snapshot.memory?.usage))")
|
||||
return items.joined(separator: " · ")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user