cambios para corregir bug visual de los temas oscuro y blanco
This commit is contained in:
@@ -46,7 +46,7 @@ const Dashboard = (() => {
|
||||
// -------------------------------------------------------------------------
|
||||
// Theme switcher
|
||||
// -------------------------------------------------------------------------
|
||||
function setTheme(theme) {
|
||||
/*function setTheme(theme) {
|
||||
document.documentElement.setAttribute('data-theme', theme);
|
||||
try { localStorage.setItem('pos_theme', theme); } catch(e) {}
|
||||
const btnInd = document.getElementById('btn-industrial');
|
||||
@@ -54,7 +54,15 @@ const Dashboard = (() => {
|
||||
if (btnInd) btnInd.classList.toggle('active', theme === 'industrial');
|
||||
if (btnMod) btnMod.classList.toggle('active', theme === 'modern');
|
||||
}
|
||||
window.setTheme = setTheme;
|
||||
window.setTheme = setTheme;*/
|
||||
|
||||
function setTheme(theme) {
|
||||
if (window.posSetTheme) window.posSetTheme(theme);
|
||||
const btnInd = document.getElementById('btn-industrial');
|
||||
const btnMod = document.getElementById('btn-modern');
|
||||
if (btnInd) btnInd.classList.toggle('active', theme === 'industrial');
|
||||
if (btnMod) btnMod.classList.toggle('active', theme === 'modern');
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Sidebar toggle (mobile)
|
||||
|
||||
Reference in New Issue
Block a user