|
@@ -48,13 +48,13 @@ class KMAngleIndicateView: NSView {
|
|
|
layer?.shadowRadius = 0
|
|
|
} else {
|
|
|
wantsLayer = true
|
|
|
- layer?.backgroundColor = NSColor.white.cgColor
|
|
|
+ layer?.backgroundColor = KMAppearance.KM_FFFFFF_Color35().cgColor
|
|
|
layer?.cornerRadius = 1
|
|
|
layer?.borderWidth = 0.5
|
|
|
- layer?.borderColor = NSColor.black.withAlphaComponent(0.15).cgColor
|
|
|
+ layer?.borderColor = KMAppearance.KM_000000_Color15Chang35().cgColor
|
|
|
|
|
|
shadow = NSShadow()
|
|
|
- layer?.shadowColor = NSColor.black.withAlphaComponent(0.2).cgColor
|
|
|
+ layer?.shadowColor = KMAppearance.KM_000000_Color20().cgColor
|
|
|
layer?.shadowOffset = CGSize(width: 0, height: -1)
|
|
|
layer?.shadowRadius = 0.5
|
|
|
}
|
|
@@ -67,18 +67,18 @@ class KMAngleIndicateView: NSView {
|
|
|
context.translateBy(x: bounds.width / 2, y: bounds.height / 2)
|
|
|
context.rotate(by: CGFloat.pi / 4)
|
|
|
context.addRect(CGRect(x: -4, y: -6, width: 8, height: 12))
|
|
|
- context.setFillColor(NSColor(calibratedRed: 117/255, green: 119/255, blue: 128/255, alpha: 1.0).cgColor)
|
|
|
+ context.setFillColor(KMAppearance.KM_757780_Color().cgColor)
|
|
|
context.fillPath()
|
|
|
} else if style == .horizontal {
|
|
|
context.translateBy(x: bounds.width / 2, y: bounds.height / 2)
|
|
|
context.addRect(CGRect(x: -4, y: -6, width: 8, height: 12))
|
|
|
- context.setFillColor(NSColor(calibratedRed: 117/255, green: 119/255, blue: 128/255, alpha: 1.0).cgColor)
|
|
|
+ context.setFillColor(KMAppearance.KM_757780_Color().cgColor)
|
|
|
context.fillPath()
|
|
|
} else if style == .right45 {
|
|
|
context.translateBy(x: bounds.width / 2, y: bounds.height / 2)
|
|
|
context.rotate(by: -CGFloat.pi / 4)
|
|
|
context.addRect(CGRect(x: -4, y: -6, width: 8, height: 12))
|
|
|
- context.setFillColor(NSColor(calibratedRed: 117/255, green: 119/255, blue: 128/255, alpha: 1.0).cgColor)
|
|
|
+ context.setFillColor(KMAppearance.KM_757780_Color().cgColor)
|
|
|
context.fillPath()
|
|
|
}
|
|
|
|
|
@@ -88,8 +88,8 @@ class KMAngleIndicateView: NSView {
|
|
|
|
|
|
override func awakeFromNib() {
|
|
|
super.awakeFromNib()
|
|
|
- gradient = NSGradient(starting: NSColor(calibratedRed: 237/255, green: 236/255, blue: 237/255, alpha: 1.0),
|
|
|
- ending: NSColor(calibratedRed: 210/255, green: 209/255, blue: 210/255, alpha: 1.0))
|
|
|
+ gradient = NSGradient(starting: KMAppearance.KM_EDECED_Color(),
|
|
|
+ ending: KMAppearance.KM_D2D1D2_Color())
|
|
|
}
|
|
|
|
|
|
override func mouseUp(with event: NSEvent) {
|