network small fixes

This commit is contained in:
Serhiy Mytrovtsiy
2019-06-26 15:21:48 +02:00
parent cd5f64a12c
commit cb0f03cfd9

View File

@@ -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()