remotes/1693045480750635534/spooky-22
Aevann1 2021-08-15 03:03:29 +02:00
parent acf4bef19f
commit 024da0b1ec
29 changed files with 255 additions and 249 deletions

View File

@ -25,7 +25,12 @@
<p>Change the theme for the website.</p>
<div class="input-group mb2">
<select id='theme' class="form-control" form="profile-settings" name="theme" onchange="post('/settings/profile?theme='+document.getElementById('theme').value, function(){window.location.reload(true);})">
{% for entry in ["dark", "light", "coffee", "tron", "4chan", "midnight"] %}
{% if v.background %}
{% set entries = ["transparent", "dark", "light", "coffee", "tron", "4chan", "midnight"] %}
{% else %}
{% set entries = ["dark", "light", "coffee", "tron", "4chan", "midnight"] %}
{% endif %}
{% for entry in entries %}
<option value="{{entry}}" {% if v.theme==entry %} selected {% endif %}>
{{entry}}
</option>

View File

@ -5,6 +5,7 @@ git push
npm install -g sass
apt install ruby-sass
sass ./files/assets/style/transparent.scss ./files/assets/style/transparent_ff66ac.css
sass ./files/assets/style/midnight.scss ./files/assets/style/midnight_ff66ac.css
sass ./files/assets/style/dark.scss ./files/assets/style/dark_ff66ac.css
sass ./files/assets/style/light.scss ./files/assets/style/light_ff66ac.css