123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- //
- // KMUserFbHelpPopController.swift
- // PDF Reader Pro Edition
- //
- // Created by tangchao on 2024/7/12.
- //
- import Cocoa
- class KMUserFbHelpPopController: NSViewController {
- @IBOutlet weak var point1: NSView!
- @IBOutlet weak var tipLabel1: NSTextField!
- @IBOutlet weak var point2: NSView!
- @IBOutlet weak var tipLabel2: NSTextField!
-
- var isDrak: Bool = false {
- didSet {
- }
- }
-
- var formatSting: String = ""
-
- convenience init() {
- self.init(nibName: "KMUserFbHelpPopController", bundle: nil)
- }
-
- override func viewWillAppear() {
- super.viewWillAppear()
-
- for pointV in [self.point1, self.point2] {
- pointV?.wantsLayer = true
- pointV?.layer?.cornerRadius = 1.5
- if self.isDrak {
- pointV?.layer?.backgroundColor = NSColor(red: 110/255.0, green: 109/255.0, blue: 112/255.0, alpha: 1).cgColor
- } else {
- pointV?.layer?.backgroundColor = .black
- }
-
- }
- }
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- // for pointV in [self.point1, self.point2] {
- // pointV?.wantsLayer = true
- // pointV?.layer?.cornerRadius = 1.5
- // pointV?.layer?.backgroundColor = .black
- // }
-
- self.tipLabel1.stringValue = NSLocalizedString("Limit file size to 20M, upload up to 10 files", comment: "")
- // 不限制文件格式(图片+PDF+Office(Excel/Word/Powerpoint)+TXT+HTML+MP4…)
- self.tipLabel2.stringValue = "\(NSLocalizedString("Format:", comment: ""))\(self.formatSting)"
- }
-
- }
|