1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // CPDFListViewConfig.swift
- // PDF Reader Pro
- //
- // Created by wanjun on 2023/10/11.
- //
- import Cocoa
- @objcMembers
- class CPDFListViewConfig: NSObject {
- var _annotationBorderOffset: NSNumber = 5
- var _annotationBorderColor: NSColor = NSColor(red: 82.0/255.0, green: 102.0/255.0, blue: 204.0/255.0, alpha: 1)
- var _dragHoverColor: NSColor = NSColor(red: 23/255.0, green: 112/255.0, blue: 244/255.0, alpha: 1.0)
- var isSaveDefault: Bool = false
-
- static let defaultManager: CPDFListViewConfig = {
- let config = CPDFListViewConfig()
- return config
- }()
-
- //Get、Set
-
- var annotationBorderOffset: NSNumber {
- get {
- return _annotationBorderOffset
- }
- set {
- _annotationBorderOffset = newValue
- }
- }
- var annotationBorderColor: NSColor {
- get {
- return _annotationBorderColor
- }
- set {
- _annotationBorderColor = newValue
- }
- }
- var dragHoverColor: NSColor {
- get {
- return _dragHoverColor
- }
- set {
- _dragHoverColor = newValue
- }
- }
- }
|