-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] How do you add custom themes? #152
Comments
here: https://github.com/LazeMSS/OctoPrint-UICustomizerThemes - do a pull request (PR) if possible. If not then I can try and add the your theme but i prefer PR |
On a related question, where does UIC store the local copy of the themes on the Pi? I'd like to modify one or two (just color changes) before you get around to implementing your idea you had in another thread. I've dug around but can't seem to find them. |
You can use custom CSS under advanced. The actual files will be overwritten by updates etc |
We tried that, it didn't work :( |
No, I didn't try that. I just tried to override the root colors, even using !important to try to force them. I'll give your method a try. |
@KenLucke and @NovaViper you can overwrite the color variables like below (take from red night) with custom css - you must include the root part - and also notice the custom css preview only updates on "blur" of the input field:
|
I tried this on @NovaViper's suggestion . It worked until I reloaded OP, then it showed, but instantly reverted back to the original theme colors. screencast.2021-05-08.15-03-11.mp4Have not tweaked everything, this was a proof-of-concept attempt.
|
Hi If you want override a specific style with CustomCSS, you can use " !Important" at the end of each line. I've used this to restore the colors for macro buttons from the "sidebar macros" plugin. These styles where overridden when using the red night theme. See below the custom css that i've used: .btn-warning { .btn-danger { |
Hi newbi here. I don't know much but wanted to create a custom UI and was using this plugin as a base. |
I built JavaScript to remove the hardcoded CSS etc. If you want to create a completely new UI there is examples of that in the official documentation. If you want to create a new theme I would recommend looking into the themes in my plugin as a base |
Thanks for the reply! i'll dig into that a bit more, seems like i missed some documentation. |
How can you modify the following css in the advanced custom css tab? #page-container-loading{ /* set theme */ I am trying to make changes to the boot screen. I want to make changes to the default \f544 icon and also the content: "UI Customizer / Cyborg" areas. Can this be done in this advanced tab or not? I have figured out how to make changes to the default cyborg template to change colors etc, but want to change the boot screen. |
No sadly the custom css stuff is loaded after the loading screen - i have been consindering make it smarter so its injected into the main theme file - I will try and test that because the way the contect is being loaded has been changed in the next release |
No worries. Thanks for an awesome plugin! |
Hey! I'm wondering how can I add custom themes? I made one based off the Dracula theme suite and I want to upload it to see how it looks.
This is the theme css for it, I took the red_night css and just changed the colors for the Dracula theme (or at least to the best of my ability); if you find something wrong with it you can change it (this is my first time working with css)!
dracula.zip
The text was updated successfully, but these errors were encountered: