Skip to content

Commit

Permalink
Load available_colors for color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Oct 7, 2020
1 parent 665e3b3 commit c007a49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/StyleWrapper/schema.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { settings } from '~/config';

export const StyleSchema = () => ({
title: 'Styles',
fieldsets: [
Expand Down Expand Up @@ -33,11 +35,13 @@ export const StyleSchema = () => ({
title: 'Background color',
type: 'color',
widget: 'style_simple_color',
available_colors: settings.available_colors,
},
textColor: {
title: 'Text color',
type: 'color',
widget: 'style_simple_color',
available_colors: settings.available_colors,
},
},
required: [],
Expand Down

0 comments on commit c007a49

Please sign in to comment.