refactor(menubar): 将刷新间隔移至底栏并恢复顶部单行

This commit is contained in:
2026-11-08 15:32:08 +08:00
parent 521319ef93
commit 8821089872
8 changed files with 33 additions and 18 deletions
+3
View File
@@ -31,6 +31,9 @@ import CoreGraphics
precondition(PanelLayout.rowHeights(columns: 2, coreRows: 2, fanCount: 0) == [220, 204, 260])
precondition(PanelLayout.columns(width: 960) == 2 && PanelLayout.columns(width: 559) == 1 && PanelLayout.columns(width: 640) == 2)
precondition(!PanelLayout.needsResourceScroll(size: CGSize(width: 960, height: 800), rows: [220, 204, 260]))
precondition(!PanelLayout.needsResourceScroll(size: CGSize(width: 640, height: 800), rows: [220, 204, 260]),
"Moving the interval to the footer must let the standard two-column overview fit")
precondition(PanelLayout.needsResourceScroll(size: CGSize(width: 640, height: 760), rows: [220, 204, 260]))
let input: [ProcessMetrics] = (0..<2000).map { (index: Int) -> ProcessMetrics in
let id = ProcessIdentity(pid: Int32(index + 1), seconds: 1, microseconds: 0)
let path: String? = index == 42 ? "/test/needle" : nil