KMNThumnailHeaderViewController.swift 843 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // KMNThumnailHeaderViewController.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by 丁林圭 on 2024/11/2.
  6. //
  7. import Cocoa
  8. import KMComponentLibrary
  9. class KMNThumnailHeaderViewController: KMNBaseViewController {
  10. @IBOutlet var titleLabel: NSTextField!
  11. override func viewDidLoad() {
  12. super.viewDidLoad()
  13. }
  14. override func initContentView() {
  15. titleLabel.font = ComponentLibrary.shared.getFontFromKey("mac/body-m-bold")
  16. updateUIThemeColor()
  17. }
  18. override func updateUIThemeColor() {
  19. super.updateUIThemeColor()
  20. titleLabel.textColor = ComponentLibrary.shared.getComponentColorFromKey("colorText/2")
  21. }
  22. override func updateUILanguage() {
  23. super.updateUILanguage()
  24. titleLabel.stringValue = KMLocalizedString("Thumbnail")
  25. }
  26. }