A modern dark theme for Deluge Web UI with custom accent colours and updated icons.
Automatically uses an optimised view for mobile devices with small screens.
Works with Deluge 2, Deluge 1.3, Docker, and TrueNAS.
- Stop deluge-web:
pkill deluge-web
- (optional) Backup old files:
sudo mv /usr/lib/python3/dist-packages/deluge/ui/web/icons/ /usr/lib/python3/dist-packages/deluge/ui/web/icons.bak & sudo mv /usr/lib/python3/dist-packages/deluge/ui/web/images/ /usr/lib/python3/dist-packages/deluge/ui/web/images.bak
- Install the theme:
sudo wget -c https://github.com/joelacus/deluge-web-dark-theme/raw/main/deluge_web_dark_theme.tar.gz -O - | sudo tar -xz -C /usr/lib/python3/dist-packages/deluge/ui/web/
- Edit web.conf to set the theme. Scroll to the bottom and change
"theme": "gray"
to"theme": "dark"
nano ~/.config/deluge/web.conf
If the web.conf file is not there, it might be here instead:
sudo nano /var/lib/deluge/.config/deluge/web.conf
If a file called web.conf~
exists, delete it. This will overwrite web.conf when deluge-web is restarted.
- Edit
index.html
sudo nano /usr/lib/python3/dist-packages/deluge/ui/web/index.html
and add the following meta tag on the empty line 19 in the header:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
This prevents scaling issues on mobile devices.
- Restart deluge-web
deluge-web
- (optional) You can change the accent colour by editing this file:
sudo nano /usr/lib/python3/dist-packages/deluge/ui/web/themes/css/xtheme-dark.css
Replace the values in the line --accent: 156,39,176;
with any RGB value.
- Enjoy! :)
- Stop deluge-web:
pkill deluge-web
- (optional) Backup old files:
sudo mv /usr/lib/python2.7/dist-packages/deluge/ui/web/icons/ /usr/lib/python2.7/dist-packages/deluge/ui/web/icons.bak & sudo mv /usr/lib/python2.7/dist-packages/deluge/ui/web/images/ /usr/lib/python2.7/dist-packages/deluge/ui/web/images.bak
- Install the theme:
sudo wget -c https://github.com/joelacus/deluge-web-dark-theme/raw/main/deluge_web_dark_theme.tar.gz -O - | sudo tar -xz -C /usr/lib/python2.7/dist-packages/deluge/ui/web/
- Edit web.conf to set the theme. Scroll to the bottom and change
"theme": "gray"
to"theme": "dark"
nano ~/.config/deluge/web.conf
If the web.conf file is not there, it might be here instead:
sudo nano /var/lib/deluge/.config/deluge/web.conf
If a file called web.conf~
exists, delete it. This will overwrite web.conf when deluge-web is restarted.
- Edit
index.html
sudo nano /usr/lib/python2.7/dist-packages/deluge/ui/web/index.html
and add the following meta tag on the empty line 19 in the header:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
This prevents scaling issues on mobile devices.
- Restart deluge-web
deluge-web
- (optional) You can change the accent colour by editing this file:
sudo nano /usr/lib/python2.7/dist-packages/deluge/ui/web/themes/css/xtheme-dark.css
Replace the values in the line --accent: 156,39,176;
with any RGB value.
- Enjoy! :)
- Stop the deluge docker container. List your docker containers with this command to find the ID
sudo docker container ls
sudo docker stop <Container ID>
If you are using compose, use this command:
docker-compose down
- Mount the theme as a volume with compose.
2a) Create a directory to save the theme locally:
mkdir ~/docker_config/deluge/ui -p
2b) Download and extract the theme into the directory:
sudo wget -c https://github.com/joelacus/deluge-web-dark-theme/raw/main/deluge_web_dark_theme.tar.gz -O - | sudo tar -xz -C ~/docker_config/deluge/ui
2c) Edit docker-compose.yml
and add the following under deluge:volumes:
:
- ~/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
Note: Your path may differ slightly. Such as /usr/lib/python3.10/site-packages/deluge/...
Example:
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
Continue to Step 3
- Install theme directly into the container.
2a) Find the deluge docker install path:
sudo find / -type d -name 'web'
Example: /var/lib/docker/overlay2/<NUMBER>/diff/usr/lib/python3/dist-packages/deluge/ui/web
2b) Install the theme. Replace <PATH>
in the install command with the path found previously which contains diff
and ends with /ui/web
sudo wget -c https://github.com/joelacus/deluge-web-dark-theme/raw/main/deluge_web_dark_theme.tar.gz -O - | sudo tar -xz -C <PATH>
- Edit web.conf to set the theme. Replace
<PATH>
with the path to your deluge config defined indocker-compose.yml
ordocker run
command:
sudo nano <PATH>/web.conf
Note: You can also search for it with sudo find / -type f -name 'web.conf'
Scroll to the bottom and change "theme": "gray"
to "theme": "dark"
4a) Find the deluge docker install path:
sudo find / -type d -name 'web'
Example: /var/lib/docker/overlay2/<NUMBER>/diff/usr/lib/python3/dist-packages/deluge/ui/web
4b) Edit index.html
. Replace <PATH>
with path found in Step 4a.
sudo nano <PATH>/index.html
and add the following meta tag on the empty line 19 in the header:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
This prevents scaling issues on mobile devices.
- Restart the deluge docker container:
sudo docker start <Container ID>
If you are using compose, use this command:
docker-compose up -d
- (optional) You can change the accent colour by editing this file. Replace
<PATH>
with the path found in step 4a:
sudo nano <PATH>/themes/css/xtheme-dark.css
Replace the values in the line --accent: 156,39,176;
with any RGB value.
- Enjoy! :)
Tested with TrueNAS Core TrueNAS-12.0-U6.1 Community Deluge Plugin based on 12.2-RELEASE-p11
- Switch to root inside the deluge plugin environment:
iocage console deluge
- Stop deluge-web:
service deluge_web stop
- (optional) Backup old files:
mv /usr/local/lib/python3.8/site-packages/deluge/ui/web/icons/ /usr/local/lib/python3.8/site-packages/deluge/ui/web/icons.bak & mv /usr/local/lib/python3.8/site-packages/deluge/ui/web/images/ /usr/local/lib/python3.8/site-packages/deluge/ui/web/images.bak
- Install the theme:
fetch https://github.com/joelacus/deluge-web-dark-theme/raw/main/deluge_web_dark_theme.tar.gz && tar zxvf deluge_web_dark_theme.tar.gz -C /usr/local/lib/python3.8/site-packages/deluge/ui/web/
- Edit web.conf to set the theme. This command changes
"theme": "gray"
to"theme": "dark"
sed -i '' -e "s/gray/dark/" ~deluge/.config/deluge/web.conf
- Edit
index.html
nano /usr/local/lib/python3.8/site-packages/deluge/ui/web/index.html
and add the following meta tag on the empty line 19 in the header:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
This prevents scaling issues on mobile devices.
- Restart deluge-web
service deluge_web start
- (optional) You can change the accent colour by editing this file:
nano /usr/local/lib/python3.8/site-packages/deluge/ui/web/themes/css/xtheme-dark.css
Replace the values in the line --accent: 156,39,176;
with any RGB value.
- Enjoy! :)