joelacus / deluge-web-dark-theme

A modern dark theme for Deluge Web UI with custom accent colours and updated icons.
GNU General Public License v3.0
106 stars 9 forks source link

Docker installs can mount the theme as volumes without needing backups. #5

Closed hvalev closed 2 years ago

hvalev commented 2 years ago

Hey, great theme. A suggestion for Docker installs is to download and extract the theme within a folder somewhere, and mount the individual paths to the icons, images and themes directories as volumes. Example below:

deluge:
    image: linuxserver/deluge:latest
    container_name: deluge
    volumes:
      # dark theme
      - ~/docker_config/deluge/ui/icons:/usr/lib/python3/dist-packages/deluge/ui/web/icons
      - ~/docker_config/deluge/ui/images:/usr/lib/python3/dist-packages/deluge/ui/web/images
      - ~/docker_config/deluge/ui/themes:/usr/lib/python3/dist-packages/deluge/ui/web/themes
unai-ndz commented 2 years ago

Thanks a lot for this, should be added into the README.

In my case I had to use this path: /usr/lib/python3.10/site-packages/deluge (LinuxServer Deluge) Sadly looks like it will not survive python upgrades without editing, but even then it should be better than the default way.

joelacus commented 2 years ago

Hi, thank you for the suggestion! :) I'm sorry I took so long to respond.

I've updated the README with instructions for how to do this. Please let me know if anything needs fixing, I'm fairly new to Docker.

unai-ndz commented 2 years ago

I have not tested it command by command but looks good.