mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: add disk read/write throughput as tooltip to the red/blue icons in the popup view (#505)
This commit is contained in:
@@ -233,9 +233,11 @@ internal class DiskNameAndBarView: NSView {
|
||||
}
|
||||
|
||||
if let read = read {
|
||||
self.readState?.toolTip = DiskSize(read).getReadableMemory()
|
||||
self.readState?.layer?.backgroundColor = read != 0 ? NSColor.systemBlue.cgColor : NSColor.lightGray.withAlphaComponent(0.75).cgColor
|
||||
}
|
||||
if let write = write {
|
||||
self.writeState?.toolTip = DiskSize(write).getReadableMemory()
|
||||
self.writeState?.layer?.backgroundColor = write != 0 ? NSColor.systemRed.cgColor : NSColor.lightGray.withAlphaComponent(0.75).cgColor
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user