// // KMLeftSideEmptyFileViewController.swift // PDF Reader Pro // // Created by tangchao on 2023/11/20. // import Cocoa class KMLeftSideEmptyFileViewController: NSViewController { @IBOutlet weak var emptyOutlineView: NSView! @IBOutlet weak var emptyAnnotationView: NSView! @IBOutlet weak var emptySnapView: NSView! @IBOutlet weak var addOutlineBox: NSBox! @IBOutlet weak var annotationBox: NSBox! @IBOutlet weak var leftSnapBox: NSBox! @IBOutlet weak var exportAnnotationBtn: NSButton! @IBOutlet weak var deleteAnnotationBtn: NSButton! @IBOutlet weak var filterAnnotationBtn: NSButton! @IBOutlet weak var addOutlineBtn: NSButton! @IBOutlet weak var deleteOutlineBtn: NSButton! @IBOutlet weak var printSnapBtn: NSButton! @IBOutlet weak var exportSnapBtn: NSButton! @IBOutlet weak var deleteSnapBtn: NSButton! @IBOutlet weak var searchOutlineSearchField: NSSearchField! @IBOutlet weak var outlineSearchView: NSView! @IBOutlet weak var notCreateOutLine: NSTextField! @IBOutlet weak var emptyOutlineLabel: NSTextField! @IBOutlet weak var emptyAnnotationLabel: NSTextField! @IBOutlet weak var emptySnapLabel: NSTextField! @IBOutlet weak var emptySearchResultLabel: NSTextField! @IBOutlet weak var snapshotNotCreatedLabel: NSTextField! override func loadView() { super.loadView() self.emptyOutlineLabel.stringValue = KMLocalizedString("To create outline item select header in contents, right click it and select \"Add Outline Item\" or click \"+\" above.") self.emptyOutlineLabel.textColor = KMAppearance.Layout.h2Color() self.notCreateOutLine.stringValue = KMLocalizedString("No outlines") self.notCreateOutLine.textColor = KMAppearance.Layout.h0Color() self.emptyAnnotationLabel.stringValue = KMLocalizedString("No Annotations") // self.emptyAnnotationLabel.textColor = KMAppearance.Layout.h0Color() self.emptyAnnotationLabel.textColor = NSColor.km_init(hex: "#94989C") self.emptySnapLabel.stringValue = KMLocalizedString("To create snapshot select an area in contents, right click it and select \"Snapshot\" .") self.emptySnapLabel.textColor = KMAppearance.Layout.h2Color() self.snapshotNotCreatedLabel.stringValue = KMLocalizedString("No Snapshots") self.snapshotNotCreatedLabel.textColor = KMAppearance.Layout.h0Color() self.searchOutlineSearchField.placeholderString = KMLocalizedString("Search Outline") self.exportAnnotationBtn.toolTip = NSLocalizedString("Export Annotations…", tableName: "MainMenu", comment: "") self.deleteAnnotationBtn.toolTip = NSLocalizedString("Remove All Annotations", tableName: "MainMenu", comment: "") self.filterAnnotationBtn.toolTip = KMLocalizedString("Note Type") self.addOutlineBox.toolTip = KMLocalizedString("Add Outline Item") self.deleteOutlineBtn.toolTip = KMLocalizedString("Delete") self.deleteSnapBtn.toolTip = KMLocalizedString("Delete") self.exportSnapBtn.toolTip = KMLocalizedString("Export") self.printSnapBtn.toolTip = KMLocalizedString("Print") self.emptySearchResultLabel.stringValue = KMLocalizedString("No Results") self.emptySearchResultLabel.textColor = KMAppearance.Layout.h0Color() self.emptySnapView.wantsLayer = true self.emptySnapView.layer?.backgroundColor = .clear self.outlineSearchView.wantsLayer = true self.outlineSearchView.layer?.backgroundColor = .clear self.emptyAnnotationView.wantsLayer = true self.emptyAnnotationView.layer?.backgroundColor = .clear self.emptyOutlineView.wantsLayer = true self.emptyOutlineView.layer?.backgroundColor = .clear } override func viewDidLoad() { super.viewDidLoad() // Do view setup here. } }