theme/img

This commit is contained in:
Marc Beninca 2025-03-28 23:22:23 +01:00
parent e2dfae59bd
commit 52759b3e2a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
4 changed files with 5 additions and 3 deletions

View file

@ -32,7 +32,7 @@
</p>
</div>
<button class="link" id="link"><img class="inline" src="../img/link.svg" alt="Links"></button>
<button id="theme"></button>
<button id="theme"><img class="inline" src="../img/theme.svg" alt="Theme"></button>
</header>
<section class="banner">

View file

@ -32,7 +32,7 @@
</p>
</div>
<button class="link" id="link"><img class="inline" src="../img/link.svg" alt="Liens"></button>
<button id="theme"></button>
<button id="theme"><img class="inline" src="../img/theme.svg" alt="Thème"></button>
</header>
<section class="banner">

3
in/img/theme.svg Normal file
View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 1024 1024" class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M513.311597 95.397443c-156.598141 0-253.554962 137.570256-253.554962 265.040908 0 105.370087 44.014782 155.726815 82.912186 200.192106l7.377094 8.41429c20.519686 23.753116 25.437407 101.224375 22.39442 158.053082a25.298159 25.298159 0 0 0 6.79655 18.445294c4.725231 4.920793 11.19721 7.767194 18.057242 7.767194h8.122482v115.854673c0 13.722111 11.134753 24.853792 24.853793 24.853792h58.187403v9.967524c0 13.719039 11.130657 24.853792 24.853792 24.853792s24.853792-11.134753 24.853792-24.853792v-9.967524h58.283649c13.722111 0 24.853792-11.131681 24.853792-24.853792V753.310317h8.155247c6.860032 0 13.332011-2.846401 18.057241-7.767194a25.293039 25.293039 0 0 0 6.796551-18.445294c-3.041963-56.828707 1.875758-134.299966 22.39442-158.053082l7.442622-8.546371c38.831875-44.398739 82.845633-94.752396 82.845634-200.060025 0.001024-127.470651-96.954773-265.040907-253.682948-265.040908z" fill="#27323A" /><path d="M571.595245 844.311197H455.124194v-91.00088h116.471051v91.00088z" fill="#79CCBF" /><path d="M646.740237 527.812885l-7.638184 8.705073c-30.355128 35.176604-35.404931 104.432208-35.404931 155.239445 0 4.467212 0.12901 7.896204 0.195562 11.843282H422.827779c0.066553-3.947078 0.195562-7.37607 0.195562-11.843282 0-50.87379-5.049802-120.063865-35.372166-155.239445 0-0.032764-7.571632-8.639544-7.571632-8.639544-36.310045-41.552338-70.614299-80.774313-70.614299-167.441087 0-105.85336 76.244645-215.333323 203.847377-215.333323 127.731742 0 203.976387 109.478938 203.976387 215.333323-0.001024 86.601245-34.238725 125.824244-70.548771 167.375558z" fill="#F4CE73" /><path d="M460.237477 205.622794c3.496568 8.476747-0.517062 18.186251-8.993808 21.68282-42.134929 17.473627-61.196602 49.383013-69.739901 73.069576-13.917673 38.642456-10.163086 84.691699 10.160014 123.168285 4.27165 8.09279 1.166205 18.123794-6.925561 22.39442-8.088694 4.27165-18.123794 1.166205-22.39442-6.92556-24.916249-47.311693-29.317932-101.907306-12.035771-149.897836 15.336778-42.361208 46.665621-75.207449 88.247652-92.426128 8.479818-3.492473 18.189323 0.520134 21.681795 8.934423z" fill="#FFFFFF" /></svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -21,7 +21,6 @@ function theme_load() {
}
function theme_set(theme) {
document.documentElement.setAttribute("data-theme", theme);
button.innerHTML = theme;
theme_write(theme);
}
function theme_swap(theme) {