KMToolbarConfigViewItem.swift 479 B

1234567891011121314151617181920212223242526
  1. //
  2. // KMToolbarConfigViewItem.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2024/5/28.
  6. //
  7. import Cocoa
  8. class KMToolbarConfigViewItem: NSCollectionViewItem {
  9. @IBOutlet weak var contentBox: NSBox!
  10. var itemView: KMToolbarItemView? {
  11. didSet {
  12. self.contentBox.contentView = self.itemView
  13. }
  14. }
  15. override func viewDidLoad() {
  16. super.viewDidLoad()
  17. self.contentBox.isTransparent = true
  18. }
  19. }