theme.pug 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. extends ./_layout.pug
  2. block adminContent
  3. .hero
  4. h1.title#title= t('nav.theme')
  5. h2.subtitle= t('admin:theme.subtitle')
  6. i.pageicon.nc-icon-outline.ui-1_drop
  7. admin-theme(inline-template, themedata=JSON.stringify(appconfig.theme))
  8. .form-sections
  9. section
  10. label.label= t('admin:theme.primarycolor')
  11. color-picker(v-model='primary')
  12. span.desc= t('admin:theme.primarycolordesc')
  13. section
  14. label.label= t('admin:theme.altcolor')
  15. color-picker(v-model='alt')
  16. span.desc= t('admin:theme.altcolordesc')
  17. section
  18. label.label= t('admin:theme.footercolor')
  19. color-picker(v-model='footer')
  20. span.desc= t('admin:theme.footercolordesc')
  21. section
  22. label.label= t('admin:theme.codeblock.title')
  23. toggle(v-model='codedark', desc=t('admin:theme.codeblock.dark'))
  24. toggle(v-model='codecolorize', desc=t('admin:theme.codeblock.colorize'))
  25. section
  26. button.button.is-grey(@click='resetTheme')
  27. i.nc-icon-outline.design_paint-37
  28. span= t('admin:theme.reset')
  29. button.button.is-green(@click='saveTheme')
  30. i.nc-icon-outline.ui-1_check
  31. span= t('admin:theme.savechanges')