|
@@ -98,6 +98,9 @@ import Cocoa
|
|
|
// model.isEnabled = self.model.editAreasFontItalicIsEqual()
|
|
|
} else if key == .textAlignment {
|
|
|
// model.isEnabled = self.model.editAreasTextAlignmentIsEqual()
|
|
|
+ if let data = self._fetchTextAlign() {
|
|
|
+ model.textAlign = data
|
|
|
+ }
|
|
|
}
|
|
|
datas.append(model)
|
|
|
}
|
|
@@ -129,6 +132,9 @@ import Cocoa
|
|
|
// model.isEnabled = self.model.editAreasFontItalicIsEqual()
|
|
|
} else if key == .textAlignment {
|
|
|
// model.isEnabled = self.model.editAreasTextAlignmentIsEqual()
|
|
|
+ if let data = self._fetchTextAlign() {
|
|
|
+ model.textAlign = data
|
|
|
+ }
|
|
|
}
|
|
|
datas.append(model)
|
|
|
}
|
|
@@ -219,6 +225,13 @@ import Cocoa
|
|
|
return false
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private func _fetchTextAlign() -> NSTextAlignment? {
|
|
|
+ if self.model.editAreasTextAlignmentIsEqual() {
|
|
|
+ return self.model.textAlignments.first
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
extension KMEditPDFPopToolBarWindow: KMInterfaceThemeChangedProtocol {
|