Open accforgithubtest opened 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)
Hi @accforgithubtest
Now you can set default theme 🎉
Please, try the new version 24.0.2
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:
Composition of the configuration file may change in the future and i'll need to constantly check for that otherwise i'll be mounting an old config which is obviously bad and may not even work (will fail validation for example)
root@31fb80e941ba:/opt/cloudbeaver# cat conf/cloudbeaver.conf
{
server: {
serverPort: "${CLOUDBEAVER_SERVICE_PORT:8978}",
workspaceLocation: "${CLOUDBEAVER_WORKSPACE_LOCATION:workspace}",
contentRoot: "web",
driversLocation: "drivers",
sslConfigurationPath:"${CLOUDBEAVER_SSL_CONF_PATH:workspace/.data/ssl-config.xml}",
rootURI: "${CLOUDBEAVER_ROOT_URI:/}",
serviceURI: "/api/",
productSettings: {
# Global properties
core.theming.theme: 'light', <<< NEED VARIABLE HERE
Hi @ratiborusx That sound reasonable. We'll add environment variable in one of the futher releases. Thank you for your proposal!
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.