 
         layoutProgressLayer()
         updateColor()
+
+        NotificationCenter.default.addObserver(self,
+                                               selector: #selector(updateColor),
+                                               name: NSColor.systemColorsDidChangeNotification,
+                                               object: nil)
     }
 
     private func makeProgressCircle() -> CGPath {

        CATransaction.commit()
    }

    private func updateColor() {
        progressLayer.strokeColor = fillColor.cgColor
        progressBackgroundLayer.strokeColor = fillColor.withAlphaComponent(0.15).cgColor
    }

        return l
    }()

    private func setup() {
        wantsLayer = true
        layer = CALayer()
