From 21b31cf599e3dd619694ca7b6b998494b18af770 Mon Sep 17 00:00:00 2001 From: shpuld Date: Fri, 17 Nov 2017 17:24:42 +0200 Subject: Move custom theming from settings to style-switcher, remove usage of custom .css files, use styles.json instead. --- src/modules/config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules/config.js') diff --git a/src/modules/config.js b/src/modules/config.js index 1811faa8..9a62905e 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -31,11 +31,10 @@ const config = { dispatch('setPageTitle') break case 'theme': - const fullPath = `/static/css/${value}` - StyleSetter.setStyle(fullPath, null, commit) + StyleSetter.setPreset(value, commit) break case 'customTheme': - StyleSetter.setStyle(null, value, commit) + StyleSetter.setColors(value, commit) } } } -- cgit v1.2.3-70-g09d2