GithubHelp home page GithubHelp logo

santahey / deluge-web-dark-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joelacus/deluge-web-dark-theme

0.0 0.0 0.0 262 KB

A modern dark theme for Deluge Web UI with custom accent colours and updated icons.

License: GNU General Public License v3.0

deluge-web-dark-theme's Introduction

Deluge Web UI Dark Theme

A modern dark theme for Deluge Web UI with custom accent colours and updated icons.

Works with Deluge 2, 1.3, and docker.

Alt text

INSTALL

Deluge 2

  1. Stop deluge-web:
pkill deluge-web
  1. (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/css/deluge.css /usr/lib/python3/dist-packages/deluge/ui/web/css/deluge.css.bak
  1. 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/
  1. 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.

  1. Restart deluge-web
deluge-web
  1. (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.

  1. Enjoy! :)

Deluge 1.3

  1. Stop deluge-web:
pkill deluge-web
  1. (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/css/deluge.css /usr/lib/python2.7/dist-packages/deluge/ui/web/css/deluge.css.bak
  1. 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/
  1. 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.

  1. Restart deluge-web
deluge-web
  1. (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.

  1. Enjoy! :)

Deluge Docker

  1. 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>
  1. 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

  1. 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>
  1. Edit web.conf to set the theme. Scroll to the bottom and change "theme": "gray" to "theme": "dark"
sudo nano /path/to/deluge/config/web.conf

If the web.conf file is not there, search for it with sudo find / -type f -name 'web.conf'

  1. Restart the deluge docker container:
sudo docker start <Container ID>
  1. (optional) You can change the accent colour by editing this file. Replace <PATH> with the path used in step 3:
sudo nano <PATH>/themes/css/xtheme-dark.css

Replace the values in the line --accent: 156,39,176; with any RGB value.

  1. Enjoy! :)

deluge-web-dark-theme's People

Contributors

joelacus avatar infopz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.