From 3861f5ff89b312c8b6f96aa58c3aa9744325e152 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 17 May 2013 17:58:23 +0400 Subject: [PATCH] added toggleTheme(...), still need to write the CSS for the themes... Signed-off-by: Alex A. Naanou --- ui/data.js | 3 +++ ui/index.html | 2 ++ ui/modes.js | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/ui/data.js b/ui/data.js index 19236e41..c42cec82 100755 --- a/ui/data.js +++ b/ui/data.js @@ -46,6 +46,9 @@ var MARKED = [] var IMAGE_CACHE = [] +var SETTINGS = { +} + /********************************************************************** diff --git a/ui/index.html b/ui/index.html index 050e0f9d..0d3a37f9 100755 --- a/ui/index.html +++ b/ui/index.html @@ -300,6 +300,8 @@ DEBUG = true // setup... $(function(){ + toggleTheme('light') + //setElementOrigin($('.ribbon-set'), 'top', 'left') if('DATA' in localStorage){ diff --git a/ui/modes.js b/ui/modes.js index 714c7890..a0ec651e 100755 --- a/ui/modes.js +++ b/ui/modes.js @@ -24,6 +24,13 @@ var toggleSingleImageMode = createCSSClassToggler('.viewer', }) +var toggleTheme = createCSSClassToggler('.viewer', + [ + 'dark', + 'gray', + 'light' + ]) + /**********************************************************************