This is a simple standalone dark theme implementation that overwrites parts of the current white admin theme to provide an alternative that won't burn your eyes at 2 in the morning.
A sample of the admin dashboard with this theme applied:
Keep in mind this theme is brand new, likely to change and does not come without its issues.
You can find the source of the theme and a simple install guide here:
Easy Install
Simple install instructions for those of you who are too lazy to go to the GitHub page.
Download the install.sh file to this directory: /var/www/html/
open a terminal ( Ctrl + Alt + T )
type: cd /var/www/html
type: sudo su (type your password if promoted)
type: chmod +x install.sh
type: ./install.sh
Follow the onscreen instructions
Feedback
Feedback is welcomed and encouraged. Any changes you'd like to see, do mention in the comments. Any Changes you've made and wish to share? Do a pull request, I'll check it out and maybe accept it (with credit where credit is due, of course).
I got the following messages:
root@tslenter-pi_hole2:/var/www/html# ./install.sh
./install.sh: line 7: syntax error near unexpected token newline' ./install.sh: line 7: '
root@tslenter-pi_hole2:/var/www/html#
Should also toss together an uninstall script before some of the noobs install it and can't figure out how to revert lol.
I'd suggest that it copies the backups instead of just moving them. On the off-chance that theming pihole becomes popular, there should always be a copy of the original.
I'm also assuming that pihole -r would redownload the file if missing.
Heh, pihole -r doesn't actually redownload the repo, rather it sorts out the files from the "hidden" core repo in /etc/.pihole and puts files back in the correct places around the system.
/var/www/html/admin is a direct clone of the repo, which is untouched during a pi-hole -r, you'd need to cd into the directory and run sudo git reset --hard to roll back changes.
Although, from just playing with it now, running pihole checkout master also resets the repo
So if the end-user is running the master branch, and they accidentally break something running pihole checkout master will actually repair better than pihole -r ??
I recently had to redo my pihole, because i broke things so bad. (I can never stop tinkering). I wish I had thought to do the checkout command to redownload the repository.
Now on a side note, that would probably be a good feature request for pihole -r to have a third option to "fresh start reinstall". Could move all the pihole files to a temporary directory, re-download the repositories, apply a fresh lighttpd conf,,, and if an error occurs during this process, offer an option to either: revert the changes by moving things back from the temporary directory,,,, or to remove the files from the temporary directory.
The JS changes will make the charts load a little quicker, that's all I can think off the top of my head. But dark themes are always more appealing, perhaps just a placebo effect? Would need to monitor the network speed on both to find out for sure
Haha amazing to hear. That'd be a good pushing point
By the way, I know the back.png is horrid. I legit opened photoshop and splatted some white on a black background. So take a look here peeps and choose one you'd like for yourself, or recommend one for the project (I can use that or make one like it if licenses are an issue)