Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Add a light and dark theme toggle
The button is emitted hidden and only revealed by the script, so a browser without JavaScript never shows a control that cannot work and the page keeps tracking the system theme.
-rw-r--r--assets/cgit.css54
-rw-r--r--assets/cgit.js56
-rw-r--r--source/ui-shared.c3
3 files changed, 108 insertions, 5 deletions