dbeaver / cloudbeaver

Cloud Database Manager
https://dbeaver.com/
Apache License 2.0
3.57k stars 389 forks source link

[Feature] Default theme via docker compose environment variable #2360

Open accforgithubtest opened 10 months ago

accforgithubtest commented 10 months ago

When self hosting cloudbeaver with docker, the application always defaults to light theme, while a user might prefer for it to default to dark theme.

Would be great to have a environment variable, that can be passed via docker compose, to set the default application theme.

It will provide user experience convenience, by providing an easy mechanism to set the theme via compose file, as well user doesn't have to manually switch themes every time.

EvgeniaBzzz commented 10 months ago

Hi @accforgithubtest! Actually we have such feature, but it stopped working after some changes :) We are going to fix it in the near future. Thank you for your request!

After that fix you will have an opportunity to configure default theme in .product.conf or via GUI (starting from version 23.3.4)

image

EvgeniaBzzz commented 8 months ago

Hi @accforgithubtest Now you can set default theme 🎉
Please, try the new version 24.0.2

ratiborusx commented 4 weeks ago

It is not a solution though, you still can not provision cloudbeaver with a dark theme using environment variable passed to docker container. It is hardcoded to 'light' even though you're using many other variables inside that config. It looks pretty trivial to add that functionality and i'm not sure why you didn't do it. The only way to provision cloudbeaver with a dark theme for now is to map edited config inside a container which i don't really want to do for 2 reasons:

EvgeniaBzzz commented 4 weeks ago

Hi @ratiborusx That sound reasonable. We'll add environment variable in one of the futher releases. Thank you for your proposal!