Add theme selector to preferences and return the previous black theme as an alternative

This commit is contained in:
Jyri-Petteri Paloposki 2020-08-20 02:37:55 +03:00
parent 2e9a0d2b4c
commit 9982217ee9
18 changed files with 64 additions and 22 deletions

9
lib/common.rb Normal file
View file

@ -0,0 +1,9 @@
module Common
def set_theme
if prefs && prefs.theme
@user_theme = prefs.theme.parameterize.underscore
else
@user_theme = SITE_CONFIG['default_theme'] || 'light_blue'
end
end
end