|
@@ -282,10 +282,21 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
cropVC?.action = #selector(cutImageAction)
|
|
|
cropVC?.button(type: .Sec, size: .m)
|
|
|
cropVC?.stringValue = NSLocalizedString("Crop", comment: "")
|
|
|
+// cropVC?.borderColor = KMAppearance.Interactive.s0Color()
|
|
|
+// cropVC?.background = KMAppearance.Layout.l1Color()
|
|
|
+// cropVC?.background_hov = KMAppearance.Layout.l1Color()
|
|
|
+// cropVC?.background_focus = KMAppearance.Layout.l1Color()
|
|
|
+// cropVC?.textColor = KMAppearance.Layout.h1Color()
|
|
|
+// cropVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
+// cropVC?.textColor_focus = KMAppearance.Layout.h1Color()
|
|
|
+// cropVC?.updateUI()
|
|
|
cropVC?.borderColor = KMAppearance.Interactive.s0Color()
|
|
|
+ cropVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
|
|
|
+ cropVC?.borderColor_disabled = KMAppearance.Interactive.s0Color()
|
|
|
cropVC?.background = KMAppearance.Layout.l1Color()
|
|
|
cropVC?.background_hov = KMAppearance.Layout.l1Color()
|
|
|
cropVC?.background_focus = KMAppearance.Layout.l1Color()
|
|
|
+ cropVC?.background_disabled = KMAppearance.Layout.l1Color()
|
|
|
cropVC?.textColor = KMAppearance.Layout.h1Color()
|
|
|
cropVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
cropVC?.textColor_focus = KMAppearance.Layout.h1Color()
|
|
@@ -405,6 +416,18 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
leftRotateVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
leftRotateVC?.textColor_focus = KMAppearance.Layout.h1Color()
|
|
|
leftRotateVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
|
|
|
+ leftRotateVC?.background_disabled = NSColor(white: 96/255.0, alpha: 1.0)
|
|
|
+// cropVC?.borderColor = KMAppearance.Interactive.s0Color()
|
|
|
+// cropVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
|
|
|
+// leftRotateVC?.borderColor_disabled = KMAppearance.Interactive.s0Color()
|
|
|
+// leftRotateVC?.background = KMAppearance.Layout.l1Color()
|
|
|
+// leftRotateVC?.background_hov = KMAppearance.Layout.l1Color()
|
|
|
+// leftRotateVC?.background_focus = KMAppearance.Layout.l1Color()
|
|
|
+// leftRotateVC?.background_disabled = KMAppearance.Layout.l1Color()
|
|
|
+// cropVC?.textColor = KMAppearance.Layout.h1Color()
|
|
|
+// cropVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
+// cropVC?.textColor_focus = KMAppearance.Layout.h1Color()
|
|
|
+
|
|
|
leftRotateVC?.updateUI()
|
|
|
|
|
|
rightRotateVC?.borderColor = KMAppearance.Interactive.s0Color()
|
|
@@ -415,6 +438,7 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
rightRotateVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
rightRotateVC?.textColor_focus = KMAppearance.Layout.h1Color()
|
|
|
rightRotateVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
|
|
|
+ rightRotateVC?.background_disabled = NSColor(white: 96/255.0, alpha: 1.0)
|
|
|
rightRotateVC?.updateUI()
|
|
|
|
|
|
reverseXVC?.borderColor = KMAppearance.Interactive.s0Color()
|
|
@@ -425,6 +449,7 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
reverseXVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
reverseXVC?.textColor_focus = KMAppearance.Interactive.a0Color()
|
|
|
reverseXVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
|
|
|
+ reverseXVC?.background_disabled = NSColor(white: 96/255.0, alpha: 1.0)
|
|
|
reverseXVC?.updateUI()
|
|
|
|
|
|
reverseYVC?.borderColor = KMAppearance.Interactive.s0Color()
|
|
@@ -435,6 +460,7 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
reverseYVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
reverseYVC?.textColor_focus = KMAppearance.Interactive.a0Color()
|
|
|
reverseYVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
|
|
|
+ reverseYVC?.background_disabled = NSColor(white: 96/255.0, alpha: 1.0)
|
|
|
reverseYVC?.updateUI()
|
|
|
|
|
|
self.wTextFieldItemView.backgroundView.layer?.backgroundColor = KMAppearance.Layout.w15Color().cgColor
|
|
@@ -466,6 +492,13 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
leftRotateVC?.textColor_hov = KMAppearance.Layout.h1Color()
|
|
|
leftRotateVC?.textColor_focus = KMAppearance.Layout.h1Color()
|
|
|
leftRotateVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
|
|
|
+
|
|
|
+ leftRotateVC?.borderColor_disabled = KMAppearance.Interactive.s0Color()
|
|
|
+ leftRotateVC?.background = KMAppearance.Layout.l1Color()
|
|
|
+ leftRotateVC?.background_hov = KMAppearance.Layout.l1Color()
|
|
|
+ leftRotateVC?.background_focus = KMAppearance.Layout.l1Color()
|
|
|
+ leftRotateVC?.background_disabled = KMAppearance.Layout.l1Color()
|
|
|
+
|
|
|
leftRotateVC?.updateUI()
|
|
|
|
|
|
whVC?.background_hov = KMAppearance.view_bg_dis_color()
|
|
@@ -657,9 +690,13 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
self.rotateTextFieldItemView.state = .Norm
|
|
|
self.rotateTextFieldItemView.kmEnabled = true
|
|
|
self.leftRotateVC?.state = .Norm
|
|
|
+ self.leftRotateVC?.button.isEnabled = true
|
|
|
self.rightRotateVC?.state = .Norm
|
|
|
+ self.leftRotateVC?.button.isEnabled = true
|
|
|
self.reverseXVC?.state = .Norm
|
|
|
+ self.reverseXVC?.button.isEnabled = true
|
|
|
self.reverseYVC?.state = .Norm
|
|
|
+ self.reverseYVC?.button.isEnabled = true
|
|
|
self.leftRotateVC?.button.isEnabled = true
|
|
|
self.rightRotateVC?.button.isEnabled = true
|
|
|
self.reverseXVC?.button.isEnabled = true
|
|
@@ -689,9 +726,13 @@ class KMEditImagePropertyViewController: NSViewController {
|
|
|
self.rotateTextFieldItemView.state = .Disabled
|
|
|
self.rotateTextFieldItemView.kmEnabled = false
|
|
|
self.leftRotateVC?.state = .Disabled
|
|
|
+ self.leftRotateVC?.button.isEnabled = false
|
|
|
self.rightRotateVC?.state = .Disabled
|
|
|
+ self.leftRotateVC?.button.isEnabled = false
|
|
|
self.reverseXVC?.state = .Disabled
|
|
|
+ self.reverseXVC?.button.isEnabled = false
|
|
|
self.reverseYVC?.state = .Disabled
|
|
|
+ self.reverseYVC?.button.isEnabled = false
|
|
|
self.leftRotateVC?.button.isEnabled = false
|
|
|
self.rightRotateVC?.button.isEnabled = false
|
|
|
self.reverseXVC?.button.isEnabled = false
|