|
@@ -186,9 +186,9 @@ class KMPageDisplayPropertiesButton: NSButton {
|
|
|
counterclockwiseRotationBox.downCallback = { [weak self] downEntered, mouseBox, event in
|
|
|
guard let self = self else { return }
|
|
|
if downEntered {
|
|
|
- counterclockwiseRotationBox.fillColor = KMAppearance.Status.selColor()
|
|
|
- counterclockwiseRotationImageView.image = NSImage(named: KMImageNameUXIconPropertybarRotateCounterclockwisePre)
|
|
|
- mainController.menuItemAction_rotateLeft((Any).self)
|
|
|
+ self.counterclockwiseRotationBox.fillColor = KMAppearance.Status.selColor()
|
|
|
+ self.counterclockwiseRotationImageView.image = NSImage(named: KMImageNameUXIconPropertybarRotateCounterclockwisePre)
|
|
|
+ self.mainController.menuItemAction_rotateLeft((Any).self)
|
|
|
} else {
|
|
|
self.counterclockwiseRotationBox.fillColor = KMAppearance.Layout.l1Color()
|
|
|
self.counterclockwiseRotationImageView.image = NSImage(named: KMImageNameUXIconPropertybarRotateCounterclockwiseNor)
|
|
@@ -205,12 +205,12 @@ class KMPageDisplayPropertiesButton: NSButton {
|
|
|
clockwiseRotationBox.downCallback = { [weak self] downEntered, mouseBox, event in
|
|
|
guard let self = self else { return }
|
|
|
if downEntered {
|
|
|
- clockwiseRotationBox.fillColor = KMAppearance.Status.selColor()
|
|
|
- clockwiseRotationImageView.image = NSImage(named: KMImageNameUXIconPropertybarRotateClockwisePre)
|
|
|
- mainController.menuItemAction_rotateRight((Any).self)
|
|
|
+ self.clockwiseRotationBox.fillColor = KMAppearance.Status.selColor()
|
|
|
+ self.clockwiseRotationImageView.image = NSImage(named: KMImageNameUXIconPropertybarRotateClockwisePre)
|
|
|
+ self.mainController.menuItemAction_rotateRight((Any).self)
|
|
|
} else {
|
|
|
- clockwiseRotationBox.fillColor = KMAppearance.Layout.l1Color()
|
|
|
- clockwiseRotationImageView.image = NSImage(named: KMImageNameUXIconPropertybarRotateClockwiseNor)
|
|
|
+ self.clockwiseRotationBox.fillColor = KMAppearance.Layout.l1Color()
|
|
|
+ self.clockwiseRotationImageView.image = NSImage(named: KMImageNameUXIconPropertybarRotateClockwiseNor)
|
|
|
}
|
|
|
}
|
|
|
|