|
@@ -614,6 +614,30 @@ class KMToolbarController: NSViewController {
|
|
|
|
|
|
self.mainToolBarView?.interfaceThemeDidChanged(appearance)
|
|
|
self.childToolBarView?.interfaceThemeDidChanged(appearance)
|
|
|
+
|
|
|
+ for item in self.childToolBarView?.toolbar?.items ?? [] {
|
|
|
+ if item.itemIdentifier == KMToolbarHighlightAnnotationItemIdentifier {
|
|
|
+ let color = KMPreference.shared.markupHighlightColor
|
|
|
+ let imageV = KMNoteTypeImageView()
|
|
|
+ item.image = imageV.noteTypeImage(withType: SKNHighlightString, color: color)
|
|
|
+ } else if item.itemIdentifier == KMToolbarUnderlineAnnotationItemIdentifier {
|
|
|
+ let color = KMPreference.shared.markupUnderlineColor
|
|
|
+ let imageV = KMNoteTypeImageView()
|
|
|
+ item.image = imageV.noteTypeImage(withType: SKNUnderlineString, color: color)
|
|
|
+ } else if item.itemIdentifier == KMToolbarStrikeOutAnnotationItemIdentifier {
|
|
|
+ let color = KMPreference.shared.markupStrikthroughColor
|
|
|
+ let imageV = KMNoteTypeImageView()
|
|
|
+ item.image = imageV.noteTypeImage(withType: SKNStrikeOutString, color: color)
|
|
|
+ } else if item.itemIdentifier == KMToolbarSquigglyAnnotationItemIdentifier {
|
|
|
+ let color = UserDefaults.standard.PDFListViewColor(forKey: CSquigglyNoteColorKey) ?? kAnnotationSquigglyDefaultColor
|
|
|
+ let imageV = KMNoteTypeImageView()
|
|
|
+ item.image = imageV.noteTypeImage(withType: CPDFAnnotation.kType.squiggly, color: color)
|
|
|
+ } else if item.itemIdentifier == KMToolbarInkAnnotationItemIdentifier {
|
|
|
+ let color = KMPreference.shared.markupPenColor
|
|
|
+ let imageV = KMNoteTypeImageView()
|
|
|
+ item.image = imageV.noteTypeImage(withType: SKNInkString, color: color)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|