KMPreferenceCommon.swift 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // KMPreferenceCommon.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2024/1/16.
  6. //
  7. import Foundation
  8. // general
  9. public let KMUserNameKey = "SKUserName"
  10. public let KMReopenLastOpenFilesKey = "SKReopenLastOpenFiles"
  11. public let KMOpenDocumentInTabKey = "KMOpenDocumentInTab"
  12. public let KMInitialWindowSizeOptionKey = "SKInitialWindowSizeOption"
  13. public let KMOpenContentsPaneOnlyForTOCKey = "SKOpenContentsPaneOnlyForTOC"
  14. public let KMRememberSnapshotsKey = "SKRememberSnapshots"
  15. public let KMDefaultPDFDisplaySettingsKey = "SKDefaultPDFDisplaySettings"
  16. public let KMDefaultFullScreenPDFDisplaySettingsKey = "SKDefaultFullScreenPDFDisplaySettings"
  17. public let KMAutoSaveSkimNotesKey = "SKAutoSaveSkimNotes"
  18. public let KMSnapshotsOnTopKey = "SKSnapshotsOnTop"
  19. public let KMSavePasswordOptionKey = "SKSavePasswordOption"
  20. // display
  21. public let KMThumbnailSizeKey = "SKThumbnailSize"
  22. public let KMTableFontSizeKey = "SKTableFontSize"
  23. public let KMGreekingThresholdKey = "SKGreekingThreshold"
  24. public let KMShouldAntiAliasKey = "SKShouldAntiAlias"
  25. public let KMBackgroundColorKey = "SKBackgroundColor"
  26. public let KMFullScreenBackgroundColorKey = "SKFullScreenBackgroundColor"
  27. public let KMReadingBarColorKey = "SKReadingBarColor"
  28. public let KMReadingBarInvertKey = "SKReadingBarInvert"
  29. func KMPreferenceKeyToCKey(pKey: KMPreferenceKey) -> String? {
  30. return nil
  31. }
  32. // MARK: - NSUserDefault key 与 偏好设置 key 相互转换
  33. func KMPreferenceKeyToUDKey(pKey: KMPreferenceKey) -> String? {
  34. return nil
  35. }
  36. func KMPreferenceKeyFromUDKey(udKey: String) -> KMPreferenceKey? {
  37. return nil
  38. }