Skip to content
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

[BUG] The material theme customization does not work like the rest #744

Closed
4 tasks done
Entropy-9973 opened this issue Jun 21, 2022 · 4 comments
Closed
4 tasks done
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@Entropy-9973
Copy link

Environment

Self-Hosted (Docker)

Version

2.1.0

Describe the problem

When I change the Background-Darker value on the Material theme preset, it does not change the color of the nav bar like the rest of themes (Where it works fine).
Can you please suggest a temporary quick fix until the bug is fixed ?

Additional info

No response

Please tick the boxes

@Entropy-9973 Entropy-9973 added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Jun 21, 2022
@Lissy93
Copy link
Owner

Lissy93 commented Jun 21, 2022

Try clicking "Show All Variables" in the theme configurator

@Lissy93
Copy link
Owner

Lissy93 commented Jun 21, 2022

Heya @Entropy-9973

Show all Variables

So the way the themes work, is that all the colors are defined as CSS variables, so they can be overridden. Here's the full list of variables. With most of the themes, most of those values just extend from --primary, --background and --background-darker. But some themes are more complex, and you need to set values individually.

You can do this from the Theme Configurator → Click "Show All Variables".

It's not really a bug, since some themes just wouldn't be possible using only those three colors.

I think that from there you should be able to set every color. But if there's ever anything else you want to change, you can always add some custom CSS for it (Settings → Custom CSS, or under appConfig.customCss). You can also build your own theme, if you want even more customization.

Note that you will loose your progress if you switch themes before you've saved your changes. When you've finished, I recommend also exporting your changes (click "Export Custom Variables"), just to be safe.

@Lissy93 Lissy93 closed this as completed Jun 21, 2022
@Entropy-9973
Copy link
Author

Heya @Entropy-9973

Show all Variables Show all Variables

So the way the themes work, is that all the colors are defined as CSS variables, so they can be overridden. Here's the full list of variables. With most of the themes, most of those values just extend from --primary, --background and --background-darker. But some themes are more complex, and you need to set values individually.

You can do this from the Theme Configurator → Click "Show All Variables".

It's not really a bug, since some themes just wouldn't be possible using only those three colors.

I think that from there you should be able to set every color. But if there's ever anything else you want to change, you can always add some custom CSS for it (Settings → Custom CSS, or under appConfig.customCss). You can also build your own theme, if you want even more customization.

Note that you will loose your progress if you switch themes before you've saved your changes. When you've finished, I recommend also exporting your changes (click "Export Custom Variables"), just to be safe.

I already tried that, you can try it yourself.
Not a single variable is able to change the navbar background color.
I have tried all of them. That property is simply not accessible through the GUI and this seems to be unique to that theme.

Btw, I just wanna command your project. Very impressive indeed. Best in class

@Entropy-9973
Copy link
Author

Entropy-9973 commented Jun 21, 2022

How would you change the color of the navbar in the Material theme ?
It works with Material-dark which should have similar propoerties
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
None yet
Development

No branches or pull requests

2 participants