mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-14 05:52:53 +00:00
Refactor system theme
This commit is contained in:
parent
2bcdf68e40
commit
a562395c26
3 changed files with 48 additions and 84 deletions
|
@ -15,7 +15,7 @@
|
|||
<body class="
|
||||
{% if prefs.layout != "" %}{{ prefs.layout }}{% endif %}
|
||||
{% if prefs.wide == "on" %} wide{% endif %}
|
||||
{% if (prefs.theme == "dark" || prefs.theme =="light") %} {{ prefs.theme }}{% endif %}">
|
||||
{% if prefs.theme != "system" %} {{ prefs.theme }}{% endif %}">
|
||||
<!-- NAVIGATION BAR -->
|
||||
<nav>
|
||||
<p id="logo">
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div id="theme">
|
||||
<label for="theme">Theme:</label>
|
||||
<select name="theme">
|
||||
{% call utils::options(prefs.theme, ["system", "dark", "light"], "system") %}
|
||||
{% call utils::options(prefs.theme, ["system", "light", "dark"], "system") %}
|
||||
</select>
|
||||
</div>
|
||||
<p>Interface</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue