diff --git a/docker-compose-example.yml b/docker-compose-example.yml index 327a88d0..cb72c376 100644 --- a/docker-compose-example.yml +++ b/docker-compose-example.yml @@ -9,10 +9,14 @@ services: # will proxy the suwayomi server to the UI # if you plan on proxying it externally then this is unnecessary - theme=skeleton - # defaults to skeleton # is for the SSR to stop off first loads + # defaults to skeleton # any of the themes avalabe in VUI # skeleton, wintry, crimson, gold-nouveau, hamlindigo, modern, rocket, sahara, seafoam, vintage + - light=false + # is for the SSR to stop off first loads + # defaults to false + # true will turn on the light mode restart: unless-stopped vui3-dev: diff --git a/set-env-variable.sh b/set-env-variable.sh index 2d5f6c53..19f1f5c9 100644 --- a/set-env-variable.sh +++ b/set-env-variable.sh @@ -21,4 +21,9 @@ $1=="nameserver" && $2!~/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])\.?){4}$/{ sed -i "s@resolverPLACEHOLDER@$TMP2@" /etc/nginx/conf.d/default.conf sed -i "s@PLACEHOLDER@$TMP@" /etc/nginx/conf.d/default.conf -# find . -name '*.html' -exec sed -i -e "s/data-theme='skeleton'/data-theme='${theme:=skeleton}/g" {} \; \ No newline at end of file +cd /usr/share/nginx/html +find . -name '*.html' -exec sed -i -e "s/data-theme="skeleton"/data-theme='${theme:=skeleton}/g" {} \; + +if [[ "${light}" = "true" || "${light}" = "True" || "${light}" = "TRUE" ]]; then + find . -name '*.html' -exec sed -i -e "s///g" {} \; +fi \ No newline at end of file diff --git a/src/app.html b/src/app.html index 1d689520..ad06b9ca 100644 --- a/src/app.html +++ b/src/app.html @@ -9,12 +9,6 @@
-