user-settings.ts 689 B

12345678910111213141516171819202122232425
  1. import { FontFamily, LineHeight, OverallTheme } from '@/shared/utils/styles'
  2. export type Keybindings = 'none' | 'default' | 'vim' | 'emacs'
  3. export type PdfViewer = 'pdfjs' | 'native'
  4. export type UserSettings = {
  5. pdfViewer: PdfViewer
  6. autoComplete: boolean
  7. autoPairDelimiters: boolean
  8. syntaxValidation: boolean
  9. editorTheme: string
  10. editorLightTheme: string
  11. editorDarkTheme: string
  12. overallTheme: OverallTheme
  13. mode: Keybindings
  14. fontSize: number
  15. fontFamily: FontFamily
  16. lineHeight: LineHeight
  17. mathPreview: boolean
  18. referencesSearchMode: 'advanced' | 'simple'
  19. enableNewEditor: boolean
  20. enableNewEditorLegacy: boolean
  21. breadcrumbs: boolean
  22. darkModePdf: boolean
  23. }