cambios para corregir bug visual de los temas oscuro y blanco

This commit is contained in:
2026-06-24 10:54:33 -06:00
parent 74118a3247
commit 7f753376e3
3 changed files with 37 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ const Reports = (() => {
// -------------------------------------------------------------------------
// Theme switcher
// -------------------------------------------------------------------------
function setTheme(theme) {
/* function setTheme(theme) {
document.documentElement.setAttribute('data-theme', theme);
try { localStorage.setItem('pos_theme', theme); } catch(e) {}
var btnInd = document.getElementById('btn-industrial');
@@ -67,7 +67,15 @@ const Reports = (() => {
if (btnInd) btnInd.classList.toggle('is-active', theme === 'industrial');
if (btnMod) btnMod.classList.toggle('is-active', theme === 'modern');
}
window.setTheme = setTheme;
window.setTheme = setTheme;*/
function setTheme(theme) {
if (window.posSetTheme) window.posSetTheme(theme);
var btnInd = document.getElementById('btn-industrial');
var btnMod = document.getElementById('btn-modern');
if (btnInd) btnInd.classList.toggle('is-active', theme === 'industrial');
if (btnMod) btnMod.classList.toggle('is-active', theme === 'modern');
}
// -------------------------------------------------------------------------
// Tab switcher with lazy loading