theme.pug 1.1 KB

12345678910111213141516171819202122232425262728
  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.design_paint-37
  7. .form-sections
  8. section
  9. label.label= t('admin:theme.primarycolor')
  10. color-picker(current-color=appconfig.theme.primary)
  11. span.desc Used for top navigation bar, headers, links, etc.
  12. section
  13. label.label= t('admin:theme.altcolor')
  14. color-picker(current-color=appconfig.theme.alt)
  15. span.desc Used for the sidebar (in a darker tone)
  16. section
  17. label.label= t('admin:theme.footercolor')
  18. color-picker(current-color=appconfig.theme.footer)
  19. span.desc Used for the foter (in a lighter tone)
  20. section
  21. label.label= t('admin:theme.codeblock')
  22. toggle(:current-value=appconfig.theme.code.dark.toString(), desc='Use Dark Theme')
  23. toggle(:current-value=appconfig.theme.code.colorize.toString(), desc='Colorize code syntax')
  24. section
  25. button.button.is-green(@click='saveUser')
  26. i.nc-icon-outline.ui-1_check
  27. span= t('admin:profile.savechanges')