diff --git a/ui/src/App.vue b/ui/src/App.vue index 342e3d2..29901c9 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -16,6 +16,12 @@ watchEffect(() => { root.style.setProperty('--font-family', ui.fontFamily) root.style.setProperty('--font-size', `${ui.fontSize}px`) + // Module-specific accent colors + root.style.setProperty('--accent-color-empleados', ui.accentColorEmpleados) + root.style.setProperty('--accent-color-tareas', ui.accentColorTareas) + root.style.setProperty('--accent-color-planillas', ui.accentColorPlanillas) + root.style.setProperty('--accent-color-asistencias', ui.accentColorAsistencias) + if (ui.theme === 'dark') { root.classList.add('theme-dark') root.classList.remove('theme-light') diff --git a/ui/src/components/asistencias/cardAsistencia.vue b/ui/src/components/asistencias/cardAsistencia.vue index 6eaeed8..f8d8d29 100644 --- a/ui/src/components/asistencias/cardAsistencia.vue +++ b/ui/src/components/asistencias/cardAsistencia.vue @@ -98,7 +98,7 @@ const deleteAsistenciaInternal = async () => { .empleado-id { font-weight: bold; - color: #2c3e50; /* Dark blue/grey */ + color: var(--accent-color-asistencias); /* Accent color */ font-size: 1.05em; } @@ -126,7 +126,7 @@ const deleteAsistenciaInternal = async () => { color: #666; background-color: #f8f9fa; /* Very light grey background */ padding: 10px; /* More padding */ - border-left: 3px solid #007bff; /* Blue accent line */ + border-left: 3px solid var(--accent-color-asistencias); /* Accent color for border */ border-radius: 4px; margin-top:10px; font-size: 0.9em; /* Slightly smaller for observation */ @@ -155,19 +155,19 @@ const deleteAsistenciaInternal = async () => { } .edit-button { - background-color: #007bff; + background-color: var(--accent-color-asistencias); color: white; } .edit-button:hover { - background-color: #0056b3; + filter: brightness(0.9); } .delete-button { - background-color: #dc3545; + background-color: var(--warning-color); /* Use warning color for delete */ color: white; } .delete-button:hover { - background-color: #c82333; + filter: brightness(0.9); } /* Estado specific styling */ diff --git a/ui/src/components/asistencias/tablaAsistencias.vue b/ui/src/components/asistencias/tablaAsistencias.vue index 0f26c68..1cf0671 100644 --- a/ui/src/components/asistencias/tablaAsistencias.vue +++ b/ui/src/components/asistencias/tablaAsistencias.vue @@ -136,19 +136,19 @@ const deleteAsistenciaInternal = async (id) => { } .edit-button { - background-color: #007bff; /* Blue */ + background-color: var(--accent-color-asistencias); color: white; } .edit-button:hover { - background-color: #0056b3; + filter: brightness(0.9); } .delete-button { - background-color: #dc3545; /* Red */ + background-color: var(--warning-color); /* Use warning color for delete */ color: white; } .delete-button:hover { - background-color: #c82333; + filter: brightness(0.9); } /* Estado specific styling (using text color for tables is often cleaner) */ diff --git a/ui/src/components/empleados/cardEmpleado.vue b/ui/src/components/empleados/cardEmpleado.vue index 7cec4a0..41712bf 100644 --- a/ui/src/components/empleados/cardEmpleado.vue +++ b/ui/src/components/empleados/cardEmpleado.vue @@ -4,7 +4,7 @@