Wizard - Color Scheme Step

This commit is contained in:
Robin Ward
2016-09-02 11:42:14 -04:00
parent 9f12b571ef
commit 3f6e3b9aff
21 changed files with 343 additions and 23 deletions

View File

@@ -44,8 +44,9 @@ class Wizard
theme = wizard.create_step('colors')
scheme = theme.add_field(id: 'color_scheme', type: 'dropdown', required: true)
scheme.add_option('default')
scheme.add_option('dark')
ColorScheme.themes.each {|t| scheme.add_option(t[:id], t) }
theme.add_field(id: 'scheme_preview', type: 'component')
wizard.append_step(theme)
finished = wizard.create_step('finished')