-
Notifications
You must be signed in to change notification settings - Fork 271
Add theme selector to settings #454
base: master
Are you sure you want to change the base?
Conversation
We now have client side theming!
👍 I would love this! Although I feel that the theme list should be automatically detected from the theme folder. I like to create my own themes or modify existing ones after copying them to a different file. I understand this requires extra hassle on the server side, but I think detection would be optimal solution and offers the best user experience. That said, I still feel this could be merged any time :) |
Well, adding themes with this setup only requires adding a few lines to the config file for your instance, It also allows for the theme file to be at any path, or even a URL to one hosted elsewhere. It looks like this: {
"name": "Crypto", //Theme name displayed to user
"path": "themes/crypto.css", //Theme path/URL
"default": false //Should the theme be the default for new users
} This also would allow for a feature in the future to allow users to install their own themes on the frontend just from a URL. |
Ok, looks good. For my requirements I just need config reloading after this is implemented 👍 |
FYI: Works for me, I've updated my files manually. |
@@ -214,12 +214,26 @@ <h1 class="title">Settings</h1> | |||
<div class="col-sm-12"> | |||
<h2>Visual Aids</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer a new "Themes" category rather than adding this to "Visual Aids".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@astorije Note that in Shuo we renamed this area "Visuals" in a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the precision! I would use the word "Theme" though, or "Interface" maybe, but I prefer "Theme". And we'll include there everything related to design/look options.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@astorije I honestly like calling it "Visuals" because it is specifically things relating to the visual appearance.
Hey @floogulinc, thanks! I left a few comments inline, but I think we are very close to a shippable solution overall, great! :-) |
@astorije with all the whitespace stuff, I was just following what was already used in the rest of the file. |
Hey @floogulinc, actually, most of the code is I can't wait to see this released!! :-) |
@astorije OH, thats what you meant, I thought you were talking about the indenting. I'll make some changes when I have the time. I'm going to be quite busy for the next 6 weeks or so. |
Argh, it's a shame, this is so close to a shippable solution :-( |
Noticed a potential duplicate: #386 |
Adds a theme selector to the settings that allows users to choose a different theme. Themes are managed in config.js and consist of only a CSS file. The default config.js now comes with the default theme and the other 3 that are come in the themes folder preconfigured.
After updating, admins should either add the new theme stuff and remove the old variable, or regenerate a new config.js.
Closes #452 and #90.