Skip to content

Commit

Permalink
light
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau authored and Robonau committed Jun 21, 2024
1 parent 5e53bd0 commit 3853ad3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 5 additions & 1 deletion docker-compose-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion set-env-variable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" {} \;
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/<html lang="en" class="dark">/<html lang="en" class>/g" {} \;
fi
6 changes: 0 additions & 6 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<!doctype html>
<html lang="en" class="dark">
<head>
<style>
/* stop the flash bang */
html.dark > body[data-theme='skeleton'] {
background-color: rgb(36, 44, 70);
}
</style>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link
Expand Down

0 comments on commit 3853ad3

Please sign in to comment.