Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

global_theme as environment variable via docker-compose.yaml

Open mkne opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I would love to set a default theme (for example "united") for new users other than the default bootstrap theme ("") via global_theme. However it looks like there is no GLOBAL_THEME variable defined in the parameter.yaml/docker-compose.yaml?

Describe the solution you'd like Enable setting a GLOBAL_THEME variable in docker-compose.yaml to one of the values from partdb.available_themes

Describe alternatives you've considered Changing the default theme via the config/parameters.yaml file is not very useful when using docker compose, as it might/will be lost when updating the container. Also the documentation says: "You should expect, that you will have to do some manual merge, when you have changed something here and update to a newer version of Part-DB."

I haven't found any discussion or issue regarding this topic. I would also consider this very low priority. But it seems easy to implement.

mkne avatar Jan 24 '25 11:01 mkne

I am working on a new settings system, where you can configure things like this via the Web interface (you can still override them via env if you want that). The default theme will be one of the options.

So that should be configurable more easily in Part-DB 2.0.

jbtronics avatar Jan 24 '25 12:01 jbtronics

So, should I close this issue as it is already planned? @jbtronics The feature you've mentioned is already work in progress in the branch https://github.com/Part-DB/Part-DB-server/tree/settings-bundle, right?

mkne avatar Jan 31 '25 06:01 mkne

With Version 2.0.2 and the settings now accessible/changeable in the web interface this issue is now resolved.

mkne avatar Sep 01 '25 08:09 mkne