KMToolbarItemPopViewController.swift 626 B

1234567891011121314151617181920212223242526
  1. //
  2. // KMToolbarItemPopViewController.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by liujiajie on 2023/11/10.
  6. //
  7. import Cocoa
  8. class KMToolbarItemPopViewController: NSViewController{
  9. @IBOutlet var toolbarHelpTipLabel: NSTextField!
  10. convenience init() {
  11. self.init(nibName: "KMToolbarItemPopViewController", bundle: nil)
  12. }
  13. @objc func updateWithHelpTip(helpTip: String) {
  14. self.toolbarHelpTipLabel.stringValue = helpTip.count > 0 ? helpTip : ""
  15. }
  16. override func viewDidLoad() {
  17. super.viewDidLoad()
  18. self.toolbarHelpTipLabel.textColor = .labelColor
  19. }
  20. }