diff --git a/ui/src/App.vue b/ui/src/App.vue index 406c89b..2183a0a 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -68,7 +68,7 @@ const transitionDurationStyle = computed(() => { // The global style.css will handle base background and text color via body styling // but we can keep specific overrides here if needed or theme classes. // ui.theme === 'dark' ? 'bg-gray-800 text-gray-100' : 'bg-gray-100 text-gray-900' - ]" :style="transitionDurationStyle"> + ]" :style="transitionDurationStyle"> diff --git a/ui/src/components/chat/CanvasChat.vue b/ui/src/components/chat/CanvasChat.vue index f591e82..c56890b 100644 --- a/ui/src/components/chat/CanvasChat.vue +++ b/ui/src/components/chat/CanvasChat.vue @@ -47,8 +47,9 @@ watch(() => chat.items.length, scrollBottom)
+ class="max-w-lg px-4 py-2 shadow break-words rounded-lg" + :class="m.owner==='yo' ? 'text-white' : 'bg-white text-gray-900 dark:bg-gray-700 dark:text-gray-200'" + :style="m.owner==='yo' ? { backgroundColor: 'var(--accent-color-chat, #0D9488)' } : {}"> {{ m.text }}
@@ -65,9 +66,12 @@ watch(() => chat.items.length, scrollBottom) @keydown="handleKey" rows="1" placeholder="Escribí un mensaje… (Enter para enviar, Shift+Enter salto)" - class="flex-1 resize-none rounded-lg border p-3 focus:outline-none focus:ring-2 focus:ring-teal-500 custom-scroll" + class="flex-1 resize-none rounded-md border border-gray-300 dark:border-gray-600 p-3 shadow-sm focus:outline-none focus:ring-2 focus:ring-[var(--accent-color-chat,#0D9488)] focus:border-[var(--accent-color-chat,#0D9488)] dark:bg-gray-700 dark:text-white custom-scroll" /> - @@ -75,9 +79,29 @@ watch(() => chat.items.length, scrollBottom) diff --git a/ui/src/components/empleados/cardEmpleado.vue b/ui/src/components/empleados/cardEmpleado.vue index d9cd0aa..a3a2997 100644 --- a/ui/src/components/empleados/cardEmpleado.vue +++ b/ui/src/components/empleados/cardEmpleado.vue @@ -39,48 +39,54 @@ @mouseleave="buttonHover($event, false)" :class="`focus:ring-[var(--accent-color-empleados)]`" >Editar - + + diff --git a/ui/src/stores/useUi.js b/ui/src/stores/useUi.js index bfe2f29..410c15a 100644 --- a/ui/src/stores/useUi.js +++ b/ui/src/stores/useUi.js @@ -17,6 +17,7 @@ const appearanceSettingKeys = [ 'accentColorPlanillas', 'accentColorAsistencias', 'accentColorConfiguracion', + 'accentColorChat', // Per-module table background colors 'tableBgColorEmpleados', 'tableBgColorTareas', @@ -31,6 +32,8 @@ const appearanceSettingKeys = [ 'defaultViewAsistencias', 'defaultViewConfiguracion', 'transitionSpeed', + 'backgroundColorChat', + ] const loadSettingsFromLocalStorage = () => { @@ -92,12 +95,14 @@ export const useUi = defineStore('ui', { accentColorPlanillas: '#FF9800', // Orange accentColorAsistencias: '#E91E63', // Pink accentColorConfiguracion: '#607D8B', // Blue Grey + accentColorChat: '#0D9488', // Teal - chosen as a default for chat // Per-module table background colors - default to white tableBgColorEmpleados: '#FFFFFF', tableBgColorTareas: '#FFFFFF', tableBgColorPlanillas: '#FFFFFF', tableBgColorAsistencias: '#FFFFFF', tableBgColorConfiguracion: '#FFFFFF', + backgroundColorChat: '#F0F0F0', // A light gray for chat background by default desktopNavbarPersistent: false, // Default module views 'defaultViewEmpleados': 'table', @@ -192,6 +197,10 @@ export const useUi = defineStore('ui', { this.accentColorConfiguracion = color _saveAppearanceState(this) }, + setAccentColorChat(color) { + this.accentColorChat = color; + _saveAppearanceState(this); + }, // Actions for per-module table background colors setTableBgColorEmpleados(color) { @@ -214,6 +223,10 @@ export const useUi = defineStore('ui', { this.tableBgColorConfiguracion = color _saveAppearanceState(this) }, + setBackgroundColorChat(color) { + this.backgroundColorChat = color; + _saveAppearanceState(this); + }, setDesktopNavbarPersistent(enabled) { this.desktopNavbarPersistent = !!enabled // Ensure boolean _saveAppearanceState(this) diff --git a/ui/src/views/ChatView.vue b/ui/src/views/ChatView.vue index 62807f2..ee86807 100644 --- a/ui/src/views/ChatView.vue +++ b/ui/src/views/ChatView.vue @@ -4,11 +4,36 @@ import CanvasChat from '@/components/chat/CanvasChat.vue' diff --git a/ui/src/views/empleados/EmpleadoForm.vue b/ui/src/views/empleados/EmpleadoForm.vue index 8429a51..72b86c9 100644 --- a/ui/src/views/empleados/EmpleadoForm.vue +++ b/ui/src/views/empleados/EmpleadoForm.vue @@ -1,13 +1,13 @@