diff --git a/client/constants.js b/client/constants.js index a4235717..72f8948c 100644 --- a/client/constants.js +++ b/client/constants.js @@ -81,6 +81,7 @@ export const CLOSE_KEYBOARD_SHORTCUT_MODAL = 'CLOSE_KEYBOARD_SHORTCUT_MODAL'; export const SHOW_TOAST = 'SHOW_TOAST'; export const HIDE_TOAST = 'HIDE_TOAST'; export const SET_TOAST_TEXT = 'SET_TOAST_TEXT'; +export const SET_THEME = 'SET_THEME'; export const SET_UNSAVED_CHANGES = 'SET_UNSAVED_CHANGES'; diff --git a/client/modules/IDE/actions/preferences.js b/client/modules/IDE/actions/preferences.js index f2270905..6b3964ef 100644 --- a/client/modules/IDE/actions/preferences.js +++ b/client/modules/IDE/actions/preferences.js @@ -136,3 +136,11 @@ export function setTextOutput(value) { } }; } + +export function setTheme(value) { + return { + type: ActionTypes.SET_THEME, + value + }; +} + diff --git a/client/modules/IDE/components/Preferences.js b/client/modules/IDE/components/Preferences.js index e9ba2fe3..b0baf885 100644 --- a/client/modules/IDE/components/Preferences.js +++ b/client/modules/IDE/components/Preferences.js @@ -165,6 +165,33 @@ class Preferences extends React.Component { +