CPDFListViewConfig.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // CPDFListViewConfig.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by wanjun on 2023/10/11.
  6. //
  7. import Cocoa
  8. @objcMembers
  9. class CPDFListViewConfig: NSObject {
  10. var _annotationBorderOffset: NSNumber = 5
  11. var _annotationBorderColor: NSColor = NSColor(red: 82.0/255.0, green: 102.0/255.0, blue: 204.0/255.0, alpha: 1)
  12. var _dragHoverColor: NSColor = NSColor(red: 23/255.0, green: 112/255.0, blue: 244/255.0, alpha: 1.0)
  13. var isSaveDefault: Bool = false
  14. static let defaultManager: CPDFListViewConfig = {
  15. let config = CPDFListViewConfig()
  16. return config
  17. }()
  18. //Get、Set
  19. var annotationBorderOffset: NSNumber {
  20. get {
  21. return _annotationBorderOffset
  22. }
  23. set {
  24. _annotationBorderOffset = newValue
  25. }
  26. }
  27. var annotationBorderColor: NSColor {
  28. get {
  29. return _annotationBorderColor
  30. }
  31. set {
  32. _annotationBorderColor = newValue
  33. }
  34. }
  35. var dragHoverColor: NSColor {
  36. get {
  37. return _dragHoverColor
  38. }
  39. set {
  40. _dragHoverColor = newValue
  41. }
  42. }
  43. }