mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
network small fixes
This commit is contained in:
@@ -185,7 +185,7 @@ class NetworkArrowsView: NSView, Widget {
|
||||
|
||||
uploadArrow.addArrow(start: uploadStart, end: uploadEnd, pointerLineLength: pointerLineLength, arrowAngle: arrowAngle)
|
||||
|
||||
if self.upload != 0 {
|
||||
if self.upload >= 1_024 {
|
||||
NSColor.red.set()
|
||||
} else {
|
||||
NSColor.labelColor.set()
|
||||
@@ -255,7 +255,7 @@ class NetworkDotsTextView: NSView, Widget {
|
||||
|
||||
var downloadCircle = NSBezierPath()
|
||||
downloadCircle = NSBezierPath(ovalIn: CGRect(x: MODULE_MARGIN, y: MODULE_MARGIN, width: height, height: height))
|
||||
if self.download != 0 {
|
||||
if self.download >= 1_024 {
|
||||
NSColor(red: (26/255.0), green: (126/255.0), blue: (252/255.0), alpha: 0.8).setFill()
|
||||
} else {
|
||||
NSColor.labelColor.setFill()
|
||||
|
||||
Reference in New Issue
Block a user