Page Projets : copie URL dans le menu ⋯ + refonte thème barre Fusion/Spark (#44, #45)
CI / test (push) Failing after 0s

This commit is contained in:
2026-10-28 23:12:44 -04:00
parent 4d1757e3d2
commit 32fbe1d137
+10 -1
View File
@@ -41,7 +41,16 @@
function syncThemeBtn(theme) {
if (!themeBtn) return;
var light = theme === 'light';
themeBtn.textContent = light ? '🌙 Mode sombre' : '☀️ Mode clair';
/* Bouton dans la section Administration (#55) : icône et
libellé sont des <span> séparés ; l'ancien bouton de
l'en-tête, lui, n'avait qu'un texte. */
var ico = themeBtn.querySelector('[data-theme-ico]');
var lbl = themeBtn.querySelector('[data-theme-label]');
if (ico) ico.textContent = light ? '🌙' : '☀️';
if (lbl) lbl.textContent = light ? 'Mode sombre' : 'Mode clair';
if (!ico && !lbl) {
themeBtn.textContent = light ? '🌙 Mode sombre' : '☀️ Mode clair';
}
themeBtn.setAttribute('aria-pressed', light ? 'true' : 'false');
}
if (themeBtn) {