KMHomeNOFileView.swift 768 B

123456789101112131415161718192021222324252627
  1. //
  2. // KMHomeNOFileView.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by lizhe on 2023/10/30.
  6. //
  7. import Cocoa
  8. class KMHomeNOFileView: KMBaseXibView {
  9. @IBOutlet weak var titleLabel: NSTextField!
  10. @IBOutlet weak var subtitleLabel: NSTextField!
  11. override func draw(_ dirtyRect: NSRect) {
  12. super.draw(dirtyRect)
  13. // Drawing code here.
  14. }
  15. override func setup() {
  16. self.titleLabel.textColor = KMAppearance.Layout.h1Color()
  17. self.titleLabel.stringValue = NSLocalizedString("No recently opened file", comment: "")
  18. self.subtitleLabel.textColor = KMAppearance.Layout.h2Color()
  19. self.subtitleLabel.stringValue = NSLocalizedString("Click Open File or drag-and-drop file here to open them.", comment: "")
  20. }
  21. }