|
@@ -17,6 +17,7 @@ class CustomStampTopToolbar: NSView, NibLoadable {
|
|
|
@IBOutlet var reduceBtn: KMButton!
|
|
|
|
|
|
@IBOutlet var zoomView: NSView!
|
|
|
+ @IBOutlet var zoomBox: NSBox!
|
|
|
@IBOutlet var zoomButton: NSPopUpButton!
|
|
|
@IBOutlet weak var zoomTextField: NSTextField!
|
|
|
|
|
@@ -46,7 +47,8 @@ class CustomStampTopToolbar: NSView, NibLoadable {
|
|
|
|
|
|
self.zoomView.wantsLayer = true
|
|
|
self.zoomView.layer?.cornerRadius = 1
|
|
|
- self.zoomView.layer?.borderWidth = 1
|
|
|
+ self.zoomView.layer?.masksToBounds = true
|
|
|
+ self.zoomBox.borderWidth = 1
|
|
|
|
|
|
self.zoomTextField.delegate = self
|
|
|
|
|
@@ -100,15 +102,14 @@ class CustomStampTopToolbar: NSView, NibLoadable {
|
|
|
self.titleLabel.textColor = KMAppearance.Layout.h1Color()
|
|
|
self.seplineView1.layer?.backgroundColor = NSColor.white.withAlphaComponent(0.1).cgColor
|
|
|
self.seplineView2.layer?.backgroundColor = NSColor.white.withAlphaComponent(0.1).cgColor
|
|
|
- self.zoomView.layer?.borderColor = KMAppearance.Interactive.s0Color().cgColor
|
|
|
- self.zoomView.layer?.backgroundColor = KMAppearance.Layout.l1Color().cgColor
|
|
|
-
|
|
|
+ self.zoomBox.borderColor = KMAppearance.Interactive.s0Color()
|
|
|
+ self.zoomBox.fillColor = KMAppearance.Layout.l1Color()
|
|
|
} else {
|
|
|
self.titleLabel.textColor = NSColor.black.withAlphaComponent(0.85)
|
|
|
self.seplineView1.layer?.backgroundColor = NSColor.black.withAlphaComponent(0.1).cgColor
|
|
|
self.seplineView2.layer?.backgroundColor = NSColor.black.withAlphaComponent(0.1).cgColor
|
|
|
- self.zoomView.layer?.borderColor = KMAppearance.Interactive.s0Color().cgColor
|
|
|
- self.zoomView.layer?.backgroundColor = KMAppearance.Layout.l1Color().cgColor
|
|
|
+ self.zoomBox.borderColor = KMAppearance.Interactive.s0Color()
|
|
|
+ self.zoomBox.fillColor = KMAppearance.Layout.l1Color()
|
|
|
}
|
|
|
}
|
|
|
|