KMRightSideEmptyVC.swift 830 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // KMRightSideEmptyVC.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by wanjun on 2023/3/24.
  6. //
  7. import Cocoa
  8. class KMRightSideEmptyVC: NSViewController {
  9. @IBOutlet weak var emptyImageView: NSImageView!
  10. @IBOutlet weak var emptyLabel: NSTextField!
  11. deinit {
  12. KMPrint("\(self.className) deinit.")
  13. }
  14. override func viewDidLoad() {
  15. super.viewDidLoad()
  16. // Do view setup here.
  17. updateUI()
  18. initLocalization()
  19. }
  20. // MARK: Private Methods
  21. func updateUI() -> Void {
  22. emptyLabel.font = NSFont.SFProTextRegularFont(12)
  23. emptyLabel.textColor = NSColor.km_init(hex: "#94989C")
  24. }
  25. func initLocalization() {
  26. emptyLabel.stringValue = NSLocalizedString("Show/Hide Annotation Properties Panel", comment: "")
  27. }
  28. }