From 6fc2c39eda766cffc7ef5c9e1d3d3cbce8ab7590 Mon Sep 17 00:00:00 2001 From: Edoardo Odorico Date: Thu, 28 Dec 2017 19:21:52 +0100 Subject: :sparkles: Implemented dark theme. Signed-off-by: Edoardo Odorico --- public/js/lib/appState.js | 3 ++- public/js/lib/editor/ui-elements.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'public/js/lib') diff --git a/public/js/lib/appState.js b/public/js/lib/appState.js index fb8030e1..87aaf737 100644 --- a/public/js/lib/appState.js +++ b/public/js/lib/appState.js @@ -2,7 +2,8 @@ import modeType from './modeType' let state = { syncscroll: true, - currentMode: modeType.view + currentMode: modeType.view, + nightMode: false } export default state diff --git a/public/js/lib/editor/ui-elements.js b/public/js/lib/editor/ui-elements.js index 0d330d77..88a1e3ca 100644 --- a/public/js/lib/editor/ui-elements.js +++ b/public/js/lib/editor/ui-elements.js @@ -37,6 +37,7 @@ export const getUIElements = () => ({ edit: $('.ui-edit'), view: $('.ui-view'), both: $('.ui-both'), + night: $('.ui-night'), uploadImage: $('.ui-upload-image') }, infobar: { -- cgit v1.2.3