A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
Merge branch 'upstream/main' into feat/dock-close-and-notifications (resolve conflicts and add thorough notification tests)
Saivarshith Mitukula19213b88a817
diff --cc CHANGELOG.mdindex e8ced8f,3e5bb3f..a938da6--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -8,52 -8,292 +8,329 @@@ copia la sección de la versión que s## [Unreleased]+### English++- Added macOS-style glass notification banners supporting configurable screen positions (top-right or bottom-right), auto-dismiss with hover pause, click-to-activate, and dismiss button or middle-click.+- Added red unread notification count badges on dock icons, cleared automatically when the app is focused or dismissed.+- Added dock icon attention bounce on shell alert events (`HSHELL_FLASH`), respecting Windows reduced-motion settings.+- Added Do Not Disturb (Focus) toggle in the menu bar to silence banners while preserving dock badges.+- Added local notification CLI and IPC: `muelle notify --title <TITLE> --body <BODY> [--app <APP>] [--icon <PATH>] [--duration <SECS>]` via lightweight zero-polling `WM_COPYDATA`.+- New Settings → Notifications section with toggles for banners, position, duration, badges, attention bounce, and Do Not Disturb.+- Hover previews on dock icons now display a close button ("✕") at the top-left+ corner on hover with localized tooltip ("Close window"), allowing closing+ individual windows gracefully via WM_CLOSE without activating them.+- Middle-clicking any window preview thumbnail or minimized window in the dock+ now closes that window directly.+- Window previews now support single-window apps as well as multi-window apps,+ automatically re-layout when windows close, and close the popup when all+ windows have closed.+- New setting in Settings → Windows: "Show close button on previews" (on by default).- - The menu bar now follows Windows' Battery percentage setting, showing the- charge next to the battery icon when enabled. Preference changes apply- without restarting Muelle, through registry notifications rather than polling.- - Fixed icons remaining over the desktop after dragging an app out of a dock- group. Drag tracking now recovers missed pointer messages without taking- focus, stops on release or Escape, and rejects late clicks after cancellation.- - Grouping now requires dropping over the target icon vertically as well as- horizontally. Recovered or collapsed groups no longer duplicate pinned apps- in recent apps.++### Español++- Incorporadas alertas en banners de cristal estilo macOS con posición configurable (superior o inferior derecha), desaparición automática con pausa al pasar el cursor, clic para activar y botón de cierre o clic central para descartar.+- Incorporadas insignias rojas de contador de notificaciones pendientes en los iconos del dock, eliminadas automáticamente al enfocar la app o descartar sus avisos.+- Incorporada animación de rebote de atención en el dock cuando una app solicita atención (`HSHELL_FLASH`), respetando las preferencias de movimiento reducido de Windows.+- Incorporado conmutador de concentración / «No molestar» en la barra superior para silenciar avisos manteniendo las insignias en el dock.+- Incorporada interfaz local por línea de comandos e IPC: `muelle notify --title <TÍTULO> --body <CUERPO> [--app <APP>] [--icon <RUTA>] [--duration <SEGS>]` mediante `WM_COPYDATA` ligero y sin sondeos.+- Nueva sección Ajustes → Notificaciones con opciones de banners, posición, duración, insignias, rebote de atención y No molestar.+- Las previsualizaciones al pasar el cursor sobre los iconos del dock ahora muestran+ un botón de cerrar («✕») en la esquina superior izquierda al posarse sobre ellas+ con mensaje localizado («Cerrar ventana»), permitiendo cerrar ventanas individuales+ de forma ordenada mediante WM_CLOSE sin activarlas.+- Hacer clic central en cualquier miniatura de previsualización o en ventanas+ minimizadas en el dock ahora cierra esa ventana directamente.+- Las previsualizaciones ahora admiten tanto apps de una sola ventana como multi-ventana,+ recalculando la disposición automáticamente al cerrarse ventanas y cerrando la ventana+ emergente cuando no quedan más ventanas abiertas.+- Nuevo ajuste en Ajustes → Ventanas: «Mostrar botón de cerrar en previsualizaciones»+ (activado por defecto).+++ ## [0.1.18]++ ### English-+ - A folder or window picker left open no longer re-sends its unchanged visuals+ to the compositor every 50–60 ms: once open, it redraws only when the item+ under the pointer changes, so Windows does no composition work while it rests.+ - Fixed island popup edge cases: AI cards stay within the display at high DPI,+ with clipped scrolling and reachable buttons. Volume drags cancel safely when+ the layout changes; audio-only updates reuse current system/provider data.+ Popups without room for their trigger close, repeated refresh clicks are+ disabled while busy, and failed media reads no longer retain the previous song.+ Scrolling reuses GPU visuals without extra idle polling or quota requests.+ - Music now shows circular Windows media artwork in the island and its popup,+ with a bundled offline fallback. The popup adds system volume and mute controls;+ the thumb and percentage respond immediately, with coalesced audio writes and+ retained visuals. Audio events avoid unrelated system queries and full redraws+ for percentage-only changes. Release/cancellation does not steal app focus.+ - Dock and island-style previews use the current monitor's wallpaper when available.+ Notch/bubble illustrations have clearer content and unobstructed selection marks. Nested+ options and sliders have fewer icons, and the GitHub star is filled yellow.+ - Settings now illustrate Dock placement, island styles and Genie speeds, with+ native keyboard-selectable options, clearer icons and shorter descriptions.+ A permanent sidebar link opens Muelle on GitHub to explore and star the project.+ - Settings → Dock → Position on screen: Left, Bottom or Right, as on macOS.+ Bottom stays the default. On a side the dock runs top to bottom below the+ menu bar, icons grow and show their names inward, menus, groups and window+ previews open beside the icon, the genie flies sideways into the dock, a+ hidden dock comes out of its side edge (on any display), and maximized+ windows end beside it. No top position: that edge belongs to the menu bar.+ - Separated manual SignPath test builds from public releases and updater output.+ Signature verification now records Windows' detailed result and the file hash,+ checks the expected signer, and keeps strict integrity checks in both modes.+ Test-certificate trust is temporary and restricted to GitHub-hosted runners.+ - Settings → Menu bar → Show what's playing (issue #28). The music half of+ the island could not be turned off; now it can, and with AI usage off too+ the menu bar shows no island at all. Off, Muelle also stops following media+ sessions. On by default, as before.+ - Added "End task" beside "Quit" in a running app's context menu, including apps+ inside dock groups (issue #26). Force termination runs outside the UI thread+ against process handles captured for that menu. Explorer, critical/shared hosts+ and inaccessible processes are excluded; cancelling the menu changes nothing.+ - Hardened "End task" against windows closed or added while its menu is open,+ including independent windows outside the dock's current desktop. All selected+ processes are checked before termination; an outdated selection is refused+ instead of ending a background process or partially applying the request.+ - Settings → Windows → Genie speed (issue #27): Normal, Fast or Faster.+ Normal is the speed the genie always had (0.5 s, close to the macOS Dock)+ and stays the default; Fast takes 0.35 s and Faster 0.25 s, minimizing and+ restoring alike. The change applies to the next window at once.+ - Added a persistent red attention badge for apps that request attention through+ Windows, including grouped apps and minimized-window thumbnails (issue #22,+ first stage). It clears on window activation/closure and follows Windows' badge+ preference live. Updates reuse visuals without rebuilding the dock, additional+ polling, notification-content access, or invented unread-message counts.+ - Fixed (issue #25): an uninstalled app could stay in Recent Apps with no way+ to remove it. Recent apps that no longer exist now leave the dock on their+ own, as pinned ones already did, and clicking one that was just uninstalled+ removes it instead of failing. A recent app's menu also has "Remove from+ Dock", to dismiss it while recent apps stay on; it comes back the next time+ you open and close it.+ - Fixed: a Logitech mouse on a receiver (reported with a G305 on its LIGHTSPEED+ receiver) did not show its battery in the menu bar, or showed it only for a+ moment. The mouse sleeps a few seconds after it stops moving and then does not+ answer, and every check dropped it. A device behind a receiver now keeps its+ last reading for 30 minutes while it sleeps, as Logitech's own tools do, and+ each request waits longer for a reply over the radio. Unplugging the+ receiver still removes it at once.+ - OpenCode shows only measured Go quotas and their reset times, including the+ monthly window. Zen's local spending estimate and balance link are removed,+ together with the history queries and bundled SQLite dependency. A Zen-only+ connection shows no OpenCode indicator; missing quota data never becomes 0%.+ - Fixed OpenCode Go account discovery: read its `opencode-go` credential, respect+ `XDG_DATA_HOME`, and fall back from an empty environment key to the saved login.+ Only saved Go keys or an explicit environment key are used for quota requests;+ saved Zen keys are not queried.+ - Fixed a blocking "Ordinal 381 Not Found" system dialog when launching applications+ with Uninstall Tool (`utshellext.dll`) or other third-party shell extensions installed+ (issue #23). `muelle.exe` now embeds an application manifest declaring a dependency on+ `Microsoft.Windows.Common-Controls` 6.0.0.0 (along with PerMonitorV2 DPI awareness and+ Windows 10/11 compatibility), enabling shell extensions to resolve modern ComCtl32 exports+ such as `LoadIconWithScaleDown`.+ - Process-level error mode now suppresses critical-error and file-not-found system message+ boxes (`SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX`) across the dock, the one-shot+ shell worker, and application launch, and `ShellExecuteExW` requests `SEE_MASK_FLAG_NO_UI`.+ Faulty or incompatible shell extensions no longer block or delay application opening;+ mandatory UAC elevation prompts remain visible.++ ### Español++ - Una carpeta o un selector de ventanas abierto ya no reenvía al compositor sus+ visuales sin cambios cada 50–60 ms: una vez abierto, solo se redibuja cuando+ cambia el elemento bajo el puntero, así que Windows no compone nada mientras reposa.+ - Corregidos casos límite de los popups: las tarjetas de IA caben en la pantalla+ con escala alta, con desplazamiento y botones limitados al área visible. El+ arrastre de volumen se cancela si cambia su posición; los cambios de audio+ reutilizan los datos del sistema y proveedores. Los popups sin espacio para+ su acceso se cierran, actualizar se desactiva mientras está ocupado y los+ errores de lectura multimedia no conservan la pista anterior. Desplazar la+ lista reutiliza visuales GPU, sin sondeo en reposo ni consultas de cuota extra.+ - La isla y el popup de música muestran la carátula circular de Windows, con+ una imagen incluida como respaldo. El popup incorpora volumen del sistema y+ silencio: tirador y porcentaje responden al instante, reutilizando sus visuales+ y agrupando las escrituras de audio. Los cambios de porcentaje evitan consultas+ ajenas al audio y redibujar la barra. El arrastre no roba el foco.+ - Las previews del Dock y de estilos de isla usan el fondo del monitor actual.+ Muesca y burbuja tienen contenido más claro y la marca de selección queda fuera+ de la imagen. Si el fondo no está disponible, mantienen el fondo ilustrado.+ Se quitan iconos de subopciones y sliders; la estrella de GitHub es amarilla.+ - Ajustes incorpora vistas de la posición del Dock, los estilos de isla y la+ velocidad del genio, con selección por teclado, iconos y textos más breves.+ Un enlace fijo al pie del sidebar abre Muelle en GitHub para conocer y apoyar+ el proyecto con una estrella.+ - Ajustes → Dock → Posición en la pantalla: Izquierda, Abajo o Derecha, como+ en macOS. Abajo sigue siendo la predeterminada. En un lateral el dock va de+ arriba abajo bajo la barra superior, los iconos crecen y muestran su nombre+ hacia dentro, los menús, grupos y vistas previas se abren junto al icono, el+ genio vuela de lado hacia el dock, el dock oculto sale por su borde lateral+ (en cualquier pantalla) y las ventanas maximizadas terminan a su lado. No hay+ posición arriba: ese borde es de la barra superior.+ - Separadas las pruebas manuales de SignPath de las releases y el actualizador.+ La verificación registra el detalle de Windows y el hash, comprueba el firmante+ previsto y exige firmas válidas en ambos modos. La confianza del certificado+ de prueba es temporal y se limita a runners alojados de GitHub.+ - Ajustes → Barra superior → Mostrar lo que se reproduce (issue #28). La parte+ de música de la isla no se podía apagar; ahora sí, y si también desactivas el+ uso de IA la barra superior no muestra ninguna isla. Apagado, Muelle deja+ además de seguir las sesiones multimedia. Activado por defecto, como antes.+ - Añadido «Finalizar tarea» junto a «Salir» en el menú de una app abierta, también+ dentro de grupos del dock (issue #26). La finalización forzada se ejecuta fuera+ del hilo de interfaz y usa los procesos capturados para ese menú. Se excluyen+ Explorer, procesos críticos/hosts compartidos y procesos sin permisos; cancelar+ el menú no realiza ninguna acción.+ - Reforzado «Finalizar tarea» si se cierran o aparecen ventanas mientras el menú+ sigue abierto, también fuera del escritorio que muestra el dock. Se comprueban+ todos los procesos antes de finalizar: una selección antigua se rechaza en vez+ de terminar un proceso en segundo plano o aplicar parcialmente la petición.+ - Ajustes → Ventanas → Velocidad del genio (issue #27): Normal, Rápida o Muy+ rápida. Normal es la velocidad de siempre (0,5 s, cercana al Dock de macOS)+ y sigue siendo la predeterminada; Rápida dura 0,35 s y Muy rápida 0,25 s,+ tanto al minimizar como al restaurar. Se aplica al instante a la siguiente+ ventana.+ - Añadido un badge rojo persistente para las apps que solicitan atención mediante+ Windows, también en grupos y miniaturas minimizadas (issue #22, primera etapa).+ Se quita al activar/cerrar la ventana y sigue en caliente la preferencia de+ badges de Windows. Se reutilizan los visuales sin reconstruir el dock, sin+ sondeos adicionales, sin leer mensajes y sin inventar contadores de no leídos.+ - Corregido (issue #25): una app desinstalada podía quedarse en Apps recientes+ sin forma de quitarla. Las apps recientes que ya no existen salen solas del+ dock, como ya pasaba con las fijadas, y al hacer clic en una recién+ desinstalada se quita en vez de fallar. El menú de una app reciente tiene+ además «Quitar del Dock» para descartarla sin desactivar las recientes;+ vuelve la próxima vez que la abras y la cierres.+ - Corregido: un ratón Logitech con receptor (reportado con un G305 y su receptor+ LIGHTSPEED) no mostraba su batería en la barra superior, o solo un momento. El+ ratón se duerme a los pocos segundos de no moverlo y entonces no responde, y+ cada comprobación lo quitaba. Un dispositivo tras receptor conserva ahora su+ última lectura 30 minutos mientras duerme, como las herramientas de Logitech, y+ cada petición espera más la respuesta por radio. Quitar el+ receptor lo sigue borrando al instante.+ - Corregido un diálogo de error bloqueante ("No se encuentra el ordinal 381") al abrir+ aplicaciones con Uninstall Tool (`utshellext.dll`) u otras extensiones del shell de+ terceros instaladas (issue #23). `muelle.exe` ahora incrusta un manifiesto de aplicación+ que declara la dependencia de `Microsoft.Windows.Common-Controls` 6.0.0.0 (junto con+ reconocimiento DPI PerMonitorV2 y compatibilidad con Windows 10/11), permitiendo a las+ extensiones resolver funciones modernas de ComCtl32 como `LoadIconWithScaleDown`.+ - El modo de error del proceso ahora suprime los cuadros de diálogo de errores críticos+ del sistema (`SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX`) en el dock, el proceso+ auxiliar del shell y el lanzador, y `ShellExecuteExW` usa `SEE_MASK_FLAG_NO_UI`. Las+ extensiones del shell defectuosas o incompatibles ya no bloquean ni retrasan la apertura+ de aplicaciones; las solicitudes de elevación UAC se mantienen visibles.+ - WinGet manifests now use `/S` for both unattended modes and declare the+ Visual C++ x64 and WebView2 runtime dependencies. This addresses first-install+ UI and missing-runtime risks; Microsoft installation revalidation is pending.++ ### Español++ - Corregida la detección de cuentas OpenCode Go: se lee la credencial `opencode-go`,+ se respeta `XDG_DATA_HOME` y una variable de clave vacía permite usar la sesión+ guardada. Las consultas usan únicamente la clave guardada de Go o una clave+ explícita de entorno; no se consulta con claves guardadas de Zen.+ - OpenCode muestra solo cuotas medidas de Go y sus reinicios, incluido el mes.+ Se retiran el gasto local de Zen y el enlace al saldo, las consultas al historial+ y la dependencia SQLite. Una conexión solo Zen no muestra el indicador de+ OpenCode; la ausencia de cuotas nunca se convierte en 0 %.+ - Los manifiestos de WinGet usan `/S` en ambos modos desatendidos y declaran+ las dependencias de Visual C++ x64 y WebView2. Se corrigen riesgos de interfaz+ en la primera instalación y de runtimes ausentes; falta revalidar con Microsoft.++ ## [0.1.17]++ ### English++ - Added Google Search Console ownership verification to the website.+ - Automated WinGet manifest generation and submission for the first package and+ future stable releases, with manual retries, native validation, final installer+ checksum checks, duplicate detection and explicit missing-token failures.+ - Added bounded graphics-device recovery and recovery of an existing dock when+ Muelle is opened again. The watchdog closes the old instance before restarting;+ a blocked recovery close has an eight-second deadline. Repeated device loss+ within the first minute after recovery stops automatic restarts and restores+ the Windows taskbar. Graphics health reuses the existing watchdog heartbeat.+ - An error updating the top bar no longer prevents the dock from refreshing or+ returning after full-screen mode.+ - Added read-only USB adapters for SteelSeries Nova 5/5X and more Nova 7/7P+ variants, Logitech G PRO X 2 (Centurion), selected G PRO/G533 HID++ variants,+ HyperX Cloud Alpha Wireless and Kingston Cloud II Wireless. Voltage-only and+ discrete readings remain unknown; HP/DTS Cloud II revisions with a reported+ connection-query side effect are excluded. Physical validation is pending.+ - Added Logitech Lightspeed and selected Nano receiver IDs, including the G305's+ C53F, and HID++ Battery Status 1000 reads. Short and long report collections are+ now queried together once per receiver. The 60-second interval and opt-in+ setting remain; physical validation of the expanded coverage is pending.+ - Fixed three Clippy violations in the accessory diagnostic's serialization tests.+ Tag releases now run the full CI checks before building and signing the installer.++ ### Español++ - Añadida la verificación de propiedad de Google Search Console en la web.+ - Automatizada la generación y el envío de manifiestos de WinGet para la primera+ publicación y las próximas releases estables, con reintentos manuales, validación+ nativa, comprobación del hash final, detección de duplicados y error si falta el token.+ - Añadida recuperación limitada ante pérdida del dispositivo gráfico y al abrir+ Muelle de nuevo cuando ya existe una instancia. El guardián cierra la anterior+ antes de reiniciarla; si el cierre de recuperación se bloquea, tiene un plazo de+ ocho segundos. Un nuevo fallo gráfico durante el primer minuto tras recuperar+ detiene los reinicios automáticos y devuelve la barra de Windows. La revisión+ gráfica aprovecha la comprobación de salud que ya hacía el guardián.+ - Un error al actualizar la barra superior ya no impide actualizar el dock ni+ hacerlo reaparecer al salir de pantalla completa.+ - Añadidos adaptadores USB de lectura para SteelSeries Nova 5/5X y más variantes+ Nova 7/7P, Logitech G PRO X 2 (Centurion), variantes G PRO/G533 HID++, HyperX+ Cloud Alpha Wireless y Cloud II Wireless Kingston. Voltajes y niveles discretos+ siguen sin porcentaje; se excluyen revisiones HP/DTS de Cloud II cuya consulta+ de conexión tiene un efecto secundario documentado. Falta validación física.+ - Añadidos receptores Logitech Lightspeed y Nano identificados, incluido C53F del+ G305, y lectura de batería HID++ 1000. Las colecciones de informes cortos y largos+ se consultan juntas una sola vez por receptor. Se mantienen los 60 segundos y+ la activación opcional; la ampliación queda pendiente de validación física.+ - Corregidos tres errores de Clippy en las pruebas de serialización del diagnóstico+ de accesorios. Las releases por etiqueta ejecutan ahora todos los controles de CI+ antes de compilar y firmar el instalador.++ ## [0.1.16]++ ### English++ - Initial automatic USB battery adapters for allowlisted Logitech Unifying/Bolt+ receivers and SteelSeries Nova 7 variants. Queries run in disposable processes,+ pause with the hidden menu bar and use a 60-second interval with error backoff.+ Approximate levels stay unknown. Physical validation is still pending; radio+ link changes may take until the next query to appear.+ - Optional mouse/headset battery indicators in Settings → Menu bar, off by default.+ Enabling them detects connected accessories automatically; missing battery data+ displays a dash. Disabling them stops the isolated reader and all accessory+ queries. The landing's Settings demo includes the switch and inline indicators.+ Hardware compatibility still needs validation.+ - The menu bar now follows Windows' Battery percentage setting, showing the+ charge next to the battery icon when enabled. Preference changes apply+ without restarting Muelle, through registry notifications rather than polling.+ - Fixed icons remaining over the desktop after dragging an app out of a dock+ group. Drag tracking now recovers missed pointer messages without taking+ focus, stops on release or Escape, and rejects late clicks after cancellation.+ - Grouping now requires dropping over the target icon vertically as well as+ horizontally. Recovered or collapsed groups no longer duplicate pinned apps+ in recent apps.+ - Fixed (issue #15): the Recycle Bin could keep its full icon after being+ emptied, even after restarting Muelle. Right after a change, Explorer may+ still draw the previous state, and that icon was cached for the day under+ the other state. The empty and full icons now come from where Windows names+ them (`DefaultIcon`, including an icon you chose in Desktop icon settings),+ and wrongly cached ones are replaced on their own.++ ### Español++ - Adaptadores USB iniciales para receptores Logitech Unifying/Bolt y variantes+ SteelSeries Nova 7 identificadas. Consultas en procesos desechables, pausadas+ con la barra oculta, con intervalo de 60 segundos y espera tras errores.+ Los niveles aproximados siguen sin porcentaje. Falta validación física; los+ cambios del enlace radio pueden tardar hasta la consulta siguiente.+ - Indicadores opcionales de batería del ratón y auriculares en Ajustes → Barra+ superior, desactivados por defecto. Al activarlos se detectan los accesorios+ conectados automáticamente; un guion indica batería no disponible. Desactivarlos+ termina el lector aislado y todas las consultas de accesorios. La demo de Ajustes+ de la landing incluye el interruptor y los indicadores en la barra.+ La compatibilidad con hardware real queda pendiente de validar.- La barra superior respeta la opción Porcentaje de batería de Windows ymuestra la carga junto al icono cuando está activada. Los cambios se aplicansin reiniciar Muelle, mediante notificaciones del registro, sin sondeo.diff --cc README.es.mdindex ee98984,fb07616..7cdd3a2--- a/README.es.md+++ b/README.es.md@@@ -151,6 -151,5 +151,6 @@@ dos tipos de conexión de red, ambas opy Flash; Antigravity se consulta mediante su servicio local. Las credencialespermanecen en memoria; Muelle no las guarda. Se desactiva en Ajustes → Barrasuperior → *Mostrar uso de proveedores de IA*.+- **Notificaciones:** el contenido y los avisos de las notificaciones se procesan exclusivamente en la memoria local de tu equipo; nunca se escriben en disco, ni se guardan en registros ni se transmiten por la red.- Detalles: [muellee.vercel.app/privacy](https://muellee.vercel.app/privacy).+ Detalles: [muelle.crafter.run/privacy](https://muelle.crafter.run/privacy).diff --cc README.mdindex ca1ef3b,50cc841..fc55511--- a/README.md+++ b/README.md@@@ -153,6 -153,5 +153,6 @@@ project. It makes two kinds of networkavailable; Antigravity is queried through its local service. Credentials stayin memory and are never stored by Muelle. Turn it off in Settings → Menu bar→ *Show AI provider usage*.+- **Notifications:** notification content and banners are processed strictly in memory on your local machine and are never written to disk, saved in log files, or transmitted over the network.- Details: [muellee.vercel.app/privacy](https://muellee.vercel.app/privacy).+ Details: [muelle.crafter.run/privacy](https://muelle.crafter.run/privacy).diff --cc apps/dock/Cargo.tomlindex 21421db,d9ddd14..1225e1a--- a/apps/dock/Cargo.toml+++ b/apps/dock/Cargo.toml@@@ -47,7 -52,7 +52,8 @@@ windows = { workspace = true, features"Win32_Graphics_Gdi","Win32_Security","Win32_System_Com",+ "Win32_System_DataExchange",+ "Win32_System_Diagnostics_Debug","Win32_System_Diagnostics_ToolHelp","Win32_System_Console","Win32_System_LibraryLoader",diff --cc apps/dock/src/app.rsindex eea6378,e7154e6..1cbccd4--- a/apps/dock/src/app.rs+++ b/apps/dock/src/app.rs@@@ -100,9 -103,8 +103,9 @@@ use crate::group_view::{DragGhost, GroupItem, GroupView, Placement, Released},mascot,menu::{self, MenuItem},- menubar::MenuBar,- multi_window_view::{MultiWindowAction, MultiWindowView},+ menubar::{MenuBar, MenuBarWidgets},- multi_window_view::{self, MultiWindowView},++ multi_window_view::{self, MultiWindowAction, MultiWindowView},+ notification_banner,scene::{Drag, Frame, Scene, SceneInput, SlotContent, Theme},shell_work::{self, Action as ShellAction},strings::{self, text},@@@ -1201,24 -1404,30 +1406,47 @@@ impl App};let room = px(SHADOW_ROOM);- let (room_x, room_top) = (room + side_growth, rise + px(LABEL_ROOM));+ // Labels show inward of the icon: above it on the bottom, beside it+ // on a side, where they need their full width.+ let label_room = if edge.is_vertical() {+ let widest = self+ .assets+ .values()+ .filter_map(|asset| asset.label.as_ref())+ .chain(&self.remove_label)+ .map(|label| label.width)+ .fold(0.0_f32, f32::max);+ px(12.0) + widest.min(px(SIDE_LABEL_MAX))+ } else {+ px(LABEL_ROOM)+ };+ let (room_x, room_top) = (room + side_growth, rise + label_room);+ let window_zone = zone(room_x, room_top, room_x, room);+ let window_frame = DockFrame::new(+ edge,+ (+ dock_x - window_zone.left as f32,+ dock_y - window_zone.top as f32,+ ),+ dock.height,+ );+ let notify_badges: Vec<Option<LabelBrush>> = if self.config.notification_badges {+ self.entries+ .iter()+ .map(|entry| {+ entry.id.as_ref().and_then(|id| {+ let count = self.notifications.badge_count(id);+ if count > 0 {+ self.gfx.notification_badge_brush(count, scale).ok()+ } else {+ None+ }+ })+ })+ .collect()+ } else {+ (0..self.entries.len()).map(|_| None).collect()+ };let contents: Vec<SlotContent<'_>> = self.entries.iter()@@@ -1858,29 -2090,19 +2116,27 @@@&stage.magnifier,);let rect = &state.rects[index];- let anchor = RECT {- left: stage.dock_origin.x + rect.x.round() as i32,- top: stage.dock_origin.y + rect.y.round() as i32,- right: stage.dock_origin.x + (rect.x + rect.width).round() as i32,- bottom: stage.dock_origin.y + (rect.y + rect.height).round() as i32,- };+ let anchor = stage.screen_rect(*rect);- let windows = self.preview_order.windows_of(&self.windows, &candidate);+ let windows = if let Some(hwnd) = window_of(&candidate) {+ vec![hwnd]+ } else {+ self.preview_order.windows_of(&self.windows, &candidate)+ };+ if windows.is_empty() {+ return Ok(());+ }self.preview = Some(MultiWindowView::show(&self.gfx,candidate,windows,- anchor,- stage.key.screen,+ &multi_window_view::Anchor {+ icon: anchor,+ screen: stage.key.screen,+ edge: stage.frame.edge,+ },stage.scale,Theme::for_system(stage.key.light, stage.key.glass),+ self.config.show_preview_close_button,)?);// The view owns its animation and dismissal timer while it is open.self.render()?;@@@ -3612,146 -3908,83 +3950,210 @@@self.last_frame = Instant::now();}- fn on_attention(&mut self, hwnd: isize) {- if hwnd == tracker::foreground_window() {- return;+ fn on_attention(&mut self, hwnd: isize) -> Result<()> {+ if !self.windows.iter().any(|window| window.hwnd == hwnd) && self.read_windows() {+ self.sync_attention_visuals()?;+ self.render()?;}- if let Some(window) = self.windows.iter().find(|window| window.hwnd == hwnd) {- let app_id = window.app_id.clone();- if self.config.muted_apps.contains(&app_id) {- return;- }- if self.config.notification_bounce && animations_enabled() {+ // A minimize/flash can arrive before the debounced tracker refresh.+ // SAFETY: Read-only query; a stale or destroyed HWND returns false.+ let minimized =+ unsafe { windows::Win32::UI::WindowsAndMessaging::IsIconic(HWND(hwnd as *mut _)) }+ .as_bool();+ let foreground = if minimized {+ 0+ } else {+ active_attention_window(&self.windows, tracker::foreground_window())+ };+ if hwnd == foreground {+ return Ok(());+ }- if let Some(window) = self.windows.iter().find(|window| window.hwnd == hwnd) {++ let app_id = self++ .windows++ .iter()++ .find(|window| window.hwnd == hwnd)++ .map(|window| window.app_id.clone());++ if let Some(app_id) = app_id {+ let changed = self.attention_enabled && self.attention.request(hwnd, foreground);- if changed || !self.attention_enabled {- self.start_bounce(- window.app_id.clone(),- Some(ATTENTION_HOPS * bounce::HOP_SECONDS),- );++ if (changed || !self.attention_enabled)++ && self.config.notification_bounce++ && animations_enabled()++ {+ self.start_bounce(app_id.clone(), Some(ATTENTION_HOPS * bounce::HOP_SECONDS));}- if self.config.notification_badges {+ if changed {+ self.sync_attention_visuals()?;+ self.render()?;+ }++ if self.config.notification_badges && !self.config.muted_apps.contains(&app_id) {+ let title = tracker::title(hwnd);+ self.notifications.push(+ app_id.clone(),+ title.clone(),+ title,+ String::new(),+ None,+ Some(hwnd),+ self.config.notification_duration as u64 * 1000,+ self.config.notification_dnd || !self.config.notifications,+ false,+ );+ let _ = self.render();+ }}+ Ok(())}+ pub fn on_notification(&mut self, payload: muelle_shell::dock_link::NotificationPayload) {+ if !self.config.notifications {+ return;+ }+ let muted = self.config.muted_apps.contains(&payload.app_id);+ if muted {+ return;+ }++ let duration_ms = (payload.duration_secs.max(1) as u64) * 1000;+ let dnd = self.config.notification_dnd;++ let pushed = self.notifications.push(+ payload.app_id.clone(),+ payload.app_name.clone(),+ payload.title.clone(),+ payload.body.clone(),+ payload.icon_path.clone(),+ None,+ duration_ms,+ dnd,+ false,+ );++ if self.config.notification_bounce && animations_enabled() {+ self.start_bounce(+ payload.app_id.clone(),+ Some(ATTENTION_HOPS * bounce::HOP_SECONDS),+ );+ }++ if self.config.notification_badges {+ let _ = self.render();+ }++ if pushed.is_some() && !self.fullscreen {+ let pos = match self.config.notification_position {+ muelle_config::NotificationPosition::TopRight => {+ muelle_core::notifications::BannerPosition::TopRight+ }+ muelle_config::NotificationPosition::BottomRight => {+ muelle_core::notifications::BannerPosition::BottomRight+ }+ };+ let work_area = primary_monitor().map_or(+ Rect {+ x: 0.0,+ y: 0.0,+ width: 1920.0,+ height: 1080.0,+ },+ |m| Rect {+ x: m.screen.left as f32,+ y: m.screen.top as f32,+ width: (m.screen.right - m.screen.left) as f32,+ height: (m.screen.bottom - m.screen.top) as f32,+ },+ );+ let scale = self.dock_monitor().map_or(1.0, |m| m.scale);+ let theme = Theme::for_system(uses_light_theme(), transparency_enabled());+ let _ = notification_banner::NotificationBannerView::ensure_or_create(+ &self.gfx, pos, work_area, scale, theme,+ );+ let _ = notification_banner::NotificationBannerView::sync_queue(+ &self.gfx,+ &self.notifications,+ );+ }+ }++ pub fn dismiss_notification(&mut self, id: u64) {+ self.notifications.dismiss(id);+ let _ =+ notification_banner::NotificationBannerView::sync_queue(&self.gfx, &self.notifications);+ }++ pub fn tick_notifications(&mut self, delta_ms: u64) {+ let expired = self.notifications.tick(delta_ms);+ if !expired.is_empty() {+ let _ = notification_banner::NotificationBannerView::sync_queue(+ &self.gfx,+ &self.notifications,+ );+ }+ }++ pub fn clear_notification_badge(&mut self, app_id: &str) {+ if self.notifications.badge_count(app_id) > 0 {+ self.notifications.clear_badge(app_id);+ let _ = self.render();+ }+ }++ pub fn toggle_dnd(&mut self) {+ self.config.notification_dnd = !self.config.notification_dnd;+ if self.config.notification_dnd {+ notification_banner::NotificationBannerView::hide();+ }+ let mut patch = serde_json::Map::new();+ patch.insert(+ "notificationDnd".into(),+ serde_json::Value::Bool(self.config.notification_dnd),+ );+ let _ = muelle_config::update_preferences(&muelle_config::default_path(), patch);+ menu_bar_refresh();+ }++ fn sync_attention_visuals(&mut self) -> Result<()> {+ if let Some(stage) = &mut self.stage {+ stage.scene.set_attention(+ &self.gfx,+ self.entries.iter().map(|entry| {+ self.attention_enabled+ && entry_has_attention(&self.attention, &self.windows, entry)+ }),+ )?;+ }+ if let Some(view) = &mut self.group_view {+ view.set_attention(&self.gfx, |id| {+ self.attention_enabled && app_has_attention(&self.attention, &self.windows, id)+ })?;+ }+ Ok(())+ }++ fn taskbar_preferences_changed(&mut self) -> Result<()> {+ if let Some(watch) = &mut self.badge_watch {+ watch.arm();+ }+ let enabled = status::taskbar_badges_enabled();+ if self.attention_enabled != enabled {+ self.attention_enabled = enabled;+ self.attention.clear();+ self.sync_attention_visuals()?;+ self.render()?;+ }+ Ok(())+ }++ fn forget_attention(&mut self, hwnd: isize) -> Result<()> {+ if self.attention.acknowledge(hwnd) {+ self.sync_attention_visuals()?;+ self.render()?;+ }+ Ok(())+ }+/// Refreshes open windows and recomposes the dock if anything changed.fn sync(&mut self) -> Result<()> {- self.read_windows();+ let attention_changed = self.read_windows();if self.preview.as_ref()diff --cc apps/dock/src/main.rsindex cdaef01,a3049ef..be31143--- a/apps/dock/src/main.rs+++ b/apps/dock/src/main.rs@@@ -25,7 -26,7 +26,8 @@@ mod mediamod menu;mod menubar;mod multi_window_view;+mod notification_banner;+ mod recovery;mod scene;mod shell_work;mod strings;@@@ -76,66 -84,11 +85,69 @@@ fn main() -> Result<()>["--autostart", "off"] => Ok(autostart::set(None)?),[guard::FLAG, pid] => guard::run(pid.parse().context("pid no válido")?),["--usage-worker"] => usage::worker_main(),+ [accessories::FLAG] => accessories::worker_main(None),+ [accessories::FLAG, visibility] => accessories::worker_main(Some(visibility)),+ [accessories::USB_FLAG] => accessories::usb_worker_main(),[shell_work::FLAG] => shell_work::worker_main(),- _ => bail!("uso: muelle [--quit | --restore | --autostart on|off]"),+ ["notify", rest @ ..] | ["--notify", rest @ ..] => handle_notify_cli(rest),+ _ => bail!("uso: muelle [--quit | --restore | --autostart on|off | notify]"),+ }+}++fn handle_notify_cli(args: &[&str]) -> Result<()> {+ let mut title = String::new();+ let mut body = String::new();+ let mut app = "Terminal".to_string();+ let mut icon: Option<String> = None;+ let mut duration_secs = 5u32;++ let mut i = 0;+ while i < args.len() {+ match args[i] {+ "--title" if i + 1 < args.len() => {+ title = args[i + 1].to_string();+ i += 2;+ }+ "--body" if i + 1 < args.len() => {+ body = args[i + 1].to_string();+ i += 2;+ }+ "--app" if i + 1 < args.len() => {+ app = args[i + 1].to_string();+ i += 2;+ }+ "--icon" if i + 1 < args.len() => {+ icon = Some(args[i + 1].to_string());+ i += 2;+ }+ "--duration" if i + 1 < args.len() => {+ duration_secs = args[i + 1].parse().unwrap_or(5);+ i += 2;+ }+ _ => i += 1,+ }+ }++ if title.is_empty() && body.is_empty() {+ bail!(+ "uso: muelle notify --title <título> --body <cuerpo> [--app <app>] [--icon <ruta>] [--duration <segundos>]"+ );+ }++ let payload = muelle_shell::dock_link::NotificationPayload {+ app_id: app.clone(),+ app_name: app,+ title,+ body,+ icon_path: icon,+ duration_secs,+ };++ if muelle_shell::dock_link::post_notification(&payload) {+ println!("Notificación enviada a Muelle.");+ Ok(())+ } else {+ bail!("No se pudo entregar la notificación: Muelle no está en ejecución.");}}diff --cc apps/dock/src/menubar.rsindex 9997596,28ba553..16a53f8--- a/apps/dock/src/menubar.rs+++ b/apps/dock/src/menubar.rs@@@ -138,14 -154,16 +154,18 @@@ pub(crate) mod glyphpub const HIDDEN_ICONS: char = '\u{E70E}';pub const MICROPHONE: char = '\u{E720}';pub const CAMERA: char = '\u{E722}';+ pub const FOCUS: char = '\u{E708}';+ pub const MOUSE: char = '\u{E962}';+ pub const HEADSET: char = '\u{E95B}';+ pub const BLUETOOTH: char = '\u{E702}';}#[derive(Clone, Copy, PartialEq, Eq)]enum Action {+ AccessoryIndicator,QuickSettings,Notifications,+ ToggleDnd,Sound,Search,TaskView,@@@ -1331,14 -1724,9 +1726,15 @@@ impl MenuBar)});match hit.map(|(_, _, action)| *action) {+ Some(Action::AccessoryIndicator) => {}Some(Action::QuickSettings) => launcher::open_quick_settings(),Some(Action::Notifications) => launcher::open_notifications(),+ Some(Action::ToggleDnd) => {+ crate::app::with_app("toggle dnd", |app| {+ app.toggle_dnd();+ Ok(())+ });+ }Some(Action::Sound) => launcher::open_sound(),Some(Action::Search) => launcher::open_search(),Some(Action::TaskView) => launcher::open_task_view(),diff --cc apps/dock/src/multi_window_view.rsindex 5d18a0c,3e0d583..533e8d4--- a/apps/dock/src/multi_window_view.rs+++ b/apps/dock/src/multi_window_view.rs@@@ -180,11 -175,20 +206,23 @@@ pub struct MultiWindowViewanimated: bool,left_at: Option<Instant>,pressed: Option<usize>,+ show_close: bool,+ close_hovered: Option<usize>,+ close_pressed: Option<usize>,mouse_was_down: bool,foreground: isize,+ /// The card lit when the opened view was last drawn. Once open, only that+ /// changes what it shows, so a tick that finds it the same touches+ /// nothing: no composition batch and no DWM work while the view rests.+ drawn: Option<Option<usize>>,+ }++ /// Where the view opens: the app's icon and display, and the screen edge+ /// the dock is on.+ pub struct Anchor {+ pub icon: RECT,+ pub screen: RECT,+ pub edge: DockEdge,}impl MultiWindowView {@@@ -193,11 -196,9 +231,10 @@@gfx: &Gfx,app_id: String,windows: Vec<isize>,- anchor: RECT,- screen: RECT,+ at: &Anchor,scale: f32,theme: Theme,+ show_close: bool,) -> Result<Self> {// SAFETY: Class and window belong to this UI thread. Once created,// `view` owns the HWND even if subsequent graphics setup fails.@@@ -410,61 -409,6 +448,62 @@@Z: 0.0,})?;card.Children()?.InsertAtTop(&caption)?;++ let (close_btn, close_normal_brush, close_hover_brush, close_tooltip) = if self+ .show_close+ {+ let card_rect = muelle_core::layout::Rect {+ x: 0.0,+ y: 0.0,+ width: size.X,+ height: size.Y,+ };+ let btn_bounds = muelle_core::preview::close_button_bounds(card_rect, self.scale);+ let btn_side = btn_bounds.visual.width as u32;+ let normal_brush = gfx.close_button_brush(btn_side, false, self.theme.light)?;+ let hover_brush = gfx.close_button_brush(btn_side, true, self.theme.light)?;++ let btn_visual = c.CreateSpriteVisual()?;+ btn_visual.SetBrush(&normal_brush)?;+ btn_visual.SetSize(Vector2 {+ X: btn_bounds.visual.width,+ Y: btn_bounds.visual.height,+ })?;+ btn_visual.SetOffset(Vector3 {+ X: btn_bounds.visual.x,+ Y: btn_bounds.visual.y,+ Z: 0.0,+ })?;+ btn_visual.SetOpacity(0.0)?;+ card.Children()?.InsertAtTop(&btn_visual)?;++ let tip_text = text().close_window.replace('&', "");- let tip_label = gfx.label_brush(&tip_text, self.scale, self.theme.light)?;++ let tip_label =++ gfx.label_brush(&tip_text, self.scale, self.theme.light, self.layout.edge)?;+ let tip_visual = c.CreateSpriteVisual()?;+ tip_visual.SetBrush(&tip_label.brush)?;+ tip_visual.SetSize(Vector2 {+ X: tip_label.width,+ Y: tip_label.height,+ })?;+ tip_visual.SetOffset(Vector3 {+ X: btn_bounds.visual.x + btn_bounds.visual.width + 4.0 * self.scale,+ Y: btn_bounds.visual.y,+ Z: 0.0,+ })?;+ tip_visual.SetOpacity(0.0)?;+ card.Children()?.InsertAtTop(&tip_visual)?;++ (+ Some(btn_visual),+ Some(normal_brush),+ Some(hover_brush),+ Some(tip_visual),+ )+ } else {+ (None, None, None, None)+ };+layers.InsertAtTop(&card)?;self.cards.push(Card {root: card,@@@ -490,21 -431,28 +530,35 @@@1.0};let eased = 1.0 - (1.0 - progress).powi(3);- let hovered = self.layout.hit(self.local_cursor()?);- if progress >= 1.0 && self.drawn == Some(hovered) {+ let cursor = self.local_cursor()?;+ let hovered = self.layout.hit(cursor);+ let close_hovered = if self.show_close {+ self.layout.hit_close(cursor, self.scale)+ } else {+ None+ };++ if progress >= 1.0 && self.drawn == Some(hovered) && self.close_hovered == close_hovered {+ return Ok(());+ }+ self.close_hovered = close_hovered;let center = (self.anchor.left + (self.anchor.right - self.anchor.left) / 2- self.layout.bounds.left) as f32;+ let travel = (1.0 - eased) * 36.0 * self.scale;for (index, (card, rect)) in self.cards.iter().zip(&self.layout.cards).enumerate() {let width = (rect.right - rect.left) as f32;- let start_x = center - width / 2.0;- let x = start_x + (rect.left as f32 - start_x) * eased;- let y = rect.top as f32 + (1.0 - eased) * 36.0 * self.scale;+ // Above a bottom dock the cards fan out of the icon and rise; beside+ // a side dock they slide out of it.+ let (x, y) = match self.layout.edge {+ DockEdge::Bottom => {+ let start_x = center - width / 2.0;+ (+ start_x + (rect.left as f32 - start_x) * eased,+ rect.top as f32 + travel,+ )+ }+ DockEdge::Left => (rect.left as f32 - travel, rect.top as f32),+ DockEdge::Right => (rect.left as f32 + travel, rect.top as f32),+ };card.root.SetOffset(Vector3 { X: x, Y: y, Z: 0.0 })?;card.root.SetOpacity(eased)?;card.highlight@@@ -622,51 -536,6 +677,57 @@@.take().filter(|pressed| Some(*pressed) == hit).and_then(|index| self.windows.get(self.page + index).copied())+ .map(MultiWindowAction::Activate)+ }++ pub fn middle_click(&mut self) -> Result<Option<isize>> {+ let point = self.local_cursor()?;+ let hit = self.layout.hit(point);+ Ok(hit.and_then(|index| self.windows.get(self.page + index).copied()))+ }++ pub fn sync_windows(&mut self, gfx: &Gfx, windows: Vec<isize>) -> Result<bool> {+ self.windows = windows;+ if self.windows.is_empty() {+ return Ok(false);+ }+ if self.page >= self.windows.len() {+ self.page = self.page.saturating_sub(self.layout.per_page);+ }+ let screen = RECT {+ left: self.layout.bounds.left,+ top: self.layout.bounds.top,+ right: self.layout.bounds.right,+ bottom: self.layout.bounds.bottom,+ };- self.layout = MultiWindowLayout::new(screen, self.anchor, self.scale, self.windows.len());++ self.layout = MultiWindowLayout::new(++ screen,++ self.anchor,++ self.layout.edge,++ self.scale,++ self.windows.len(),++ );+ let bounds = self.layout.bounds;+ unsafe {+ SetWindowPos(+ self.hwnd,+ Some(HWND_TOPMOST),+ bounds.left,+ bounds.top,+ bounds.right - bounds.left,+ bounds.bottom - bounds.top,+ SWP_NOACTIVATE | SWP_SHOWWINDOW,+ )?;+ }+ self.rebuild(gfx)?;+ self.update()?;+ Ok(true)+ }++ pub fn remove_window(&mut self, gfx: &Gfx, hwnd: isize) -> Result<bool> {+ let mut windows = self.windows.clone();+ windows.retain(|&h| h != hwnd);+ self.sync_windows(gfx, windows)}pub fn scroll(&mut self, gfx: &Gfx, previous: bool) -> Result<()> {diff --cc apps/dock/src/scene.rsindex d6ac158,382ccee..95c5921--- a/apps/dock/src/scene.rs+++ b/apps/dock/src/scene.rs@@@ -292,7 -473,9 +475,10 @@@ pub struct Sceneraised: Cell<Option<usize>>,slots: Vec<SpriteVisual>,badges: Vec<Option<SpriteVisual>>,+ notify_badges: Vec<Option<Label>>,+ attention: Vec<Option<AttentionBadge>>,+ attention_theme: Theme,+ scale: f32,indicators: Vec<Option<ShapeVisual>>,labels: Vec<Option<Label>>,remove_label: Option<Label>,@@@ -435,7 -625,9 +634,10 @@@ impl Sceneraised: Cell::new(None),slots,badges,+ notify_badges,+ attention: (0..layout.slots.len()).map(|_| None).collect(),+ attention_theme: theme,+ scale,indicators,labels,remove_label,@@@ -506,19 -740,28 +750,35 @@@fit(y + height - side * BADGE_INSIDE),))?;}+ if let Some(Some(nb)) = self.notify_badges.get(index) {+ nb.visual.SetIsVisible(dragged.is_none())?;+ nb.visual.SetOffset(v3(+ fit(x + width - nb.width * 0.7),+ fit(y - nb.height * 0.25),+ ))?;+ }+ if let Some(Some(notice)) = self.attention.get(index) {+ notice.place(+ Rect {+ x,+ y,+ width,+ height,+ },+ self.scale,+ if dragged.is_some_and(|drag| drag.ghost) {+ 0.35+ } else if dragged.is_some_and(|drag| drag.removing) {+ 0.55+ } else {+ 1.0+ },+ snap,+ )?;+ }if let Some(Some(indicator)) = self.indicators.get(index) {indicator.SetIsVisible(dragged.is_none())?;- indicator.SetOffset(v3(- fit(x + (width - self.indicator_size) / 2.0),- self.indicator_y,- ))?;+ indicator.SetOffset(v3(fit(dot.x), fit(dot.y)))?;}if let Some(Some(label)) = self.labels.get(index) {let shown = hovered == Some(index) && drag.is_none();diff --cc apps/settings/src/App.tsxindex 5c6e33f,d056ca3..4143cd8--- a/apps/settings/src/App.tsx+++ b/apps/settings/src/App.tsx@@@ -395,85 -434,100 +441,157 @@@ export function App()</Card></>) : section === "menubar" ? (- <Card>- <Row label={t.menuBarShow} hint={t.menuBarHint}>- <Toggle- label={t.menuBarShow}- checked={config.menuBar}- onChange={(menuBar) => update({ menuBar })}- />- </Row>- <SubRow label={t.menuBarAutoHide} hint={t.menuBarAutoHideHint} open={config.menuBar}>- <Toggle- label={t.menuBarAutoHide}- checked={config.menuBarAutoHide}- onChange={(menuBarAutoHide) => update({ menuBarAutoHide })}- />- </SubRow>- <SubRow label={t.aiUsage} hint={t.aiUsageHint} open={config.menuBar}>- <Toggle- label={t.aiUsage}- checked={config.aiUsage}- onChange={(aiUsage) => update({ aiUsage })}- />- </SubRow>- </Card>+++ <>+ <Card>+ <Row icon={<SettingIcon name="menu" />} label={t.menuBarShow} hint={t.menuBarHint}>+ <Toggle+ label={t.menuBarShow}+ checked={config.menuBar}+ onChange={(menuBar) => update({ menuBar })}+ />+ </Row>+ <SubRow label={t.menuBarAutoHide} hint={t.menuBarAutoHideHint} open={config.menuBar}>+ <Toggle+ label={t.menuBarAutoHide}+ checked={config.menuBarAutoHide}+ onChange={(menuBarAutoHide) => update({ menuBarAutoHide })}+ />+ </SubRow>+ <SubRow label={t.menuBarMusic} hint={t.menuBarMusicHint} open={config.menuBar}>+ <Toggle+ label={t.menuBarMusic}+ checked={config.menuBarMusic}+ onChange={(menuBarMusic) => update({ menuBarMusic })}+ />+ </SubRow>+ <SubRow label={t.aiUsage} hint={t.aiUsageHint} open={config.menuBar}>+ <Toggle+ label={t.aiUsage}+ checked={config.aiUsage}+ onChange={(aiUsage) => update({ aiUsage })}+ />+ </SubRow>+ <SubRow+ label={t.islandStyle}+ stacked+ open={config.menuBar && (config.menuBarMusic || config.aiUsage)}+ >+ <VisualChoices<IslandStyle>+ label={t.islandStyle}+ hideLabel+ value={config.menuBarIslandStyle}+ options={[+ { value: "notch", label: t.islandStyleNotch, preview: <IslandPreview style="notch" wallpaper={wallpaper} /> },+ { value: "bubble", label: t.islandStyleBubble, preview: <IslandPreview style="bubble" wallpaper={wallpaper} /> },+ ]}+ onChange={(menuBarIslandStyle) => update({ menuBarIslandStyle })}+ />+ </SubRow>+ <SubRow label={t.accessoryBattery} hint={t.accessoryBatteryHint} open={config.menuBar}>+ <Toggle+ label={t.accessoryBattery}+ checked={config.accessoryBattery}+ onChange={(accessoryBattery) => update({ accessoryBattery })}+ />+ </SubRow>+ </Card>+ {config.menuBar && (+ <Card title={t.menuBarItems}>+ <Row icon={<SettingIcon name="bluetooth" />} label={t.menuBarBluetooth} hint={t.menuBarBluetoothHint}>+ <Toggle+ label={t.menuBarBluetooth}+ checked={config.menuBarBluetooth}+ onChange={(menuBarBluetooth) => update({ menuBarBluetooth })}+ />+ </Row>+ <Row icon={<SettingIcon name="battery" />} label={t.menuBarBatteryPercent} hint={t.menuBarBatteryPercentHint}>+ <Toggle+ label={t.menuBarBatteryPercent}+ checked={config.menuBarBatteryPercent ?? false}+ onChange={(menuBarBatteryPercent) => update({ menuBarBatteryPercent })}+ />+ </Row>+ <Row icon={<SettingIcon name="search" />} label={t.menuBarSearch} hint={t.menuBarSearchHint}>+ <Toggle+ label={t.menuBarSearch}+ checked={config.menuBarSearch ?? true}+ onChange={(menuBarSearch) => update({ menuBarSearch })}+ />+ </Row>+ <Row icon={<SettingIcon name="windows" />} label={t.menuBarTaskView} hint={t.menuBarTaskViewHint}>+ <Toggle+ label={t.menuBarTaskView}+ checked={config.menuBarTaskView ?? true}+ onChange={(menuBarTaskView) => update({ menuBarTaskView })}+ />+ </Row>+ <Row icon={<SettingIcon name="widgets" />} label={t.menuBarWidgets} hint={t.menuBarWidgetsHint}>+ <Toggle+ label={t.menuBarWidgets}+ checked={config.menuBarWidgets ?? true}+ onChange={(menuBarWidgets) => update({ menuBarWidgets })}+ />+ </Row>+ </Card>+ )}+ ) : section === "notifications" ? (+ <>+ <Card>+ <Row label={t.notificationsEnabled} hint={t.notificationsHint}>+ <Toggle+ label={t.notificationsEnabled}+ checked={config.notifications}+ onChange={(notifications) => update({ notifications })}+ />+ </Row>+ <SubRow label={t.notificationPosition} open={config.notifications}>+ <Segmented+ label={t.notificationPosition}+ value={config.notificationPosition}+ options={[+ { value: "top-right", label: t.notificationPositionTopRight },+ { value: "bottom-right", label: t.notificationPositionBottomRight },+ ]}+ onChange={(notificationPosition) => update({ notificationPosition })}+ />+ </SubRow>+ <SubRow label={t.notificationDuration} open={config.notifications}>+ <Slider+ label={t.notificationDuration}+ min={2}+ max={15}+ value={config.notificationDuration}- after={`${config.notificationDuration}s`}++ unit="s"+ onChange={(notificationDuration) => update({ notificationDuration })}+ />+ </SubRow>+ </Card>+ <Card>+ <Row label={t.notificationBadges} hint={t.notificationBadgesHint}>+ <Toggle+ label={t.notificationBadges}+ checked={config.notificationBadges}+ onChange={(notificationBadges) => update({ notificationBadges })}+ />+ </Row>+ <Row label={t.notificationBounce} hint={t.notificationBounceHint}>+ <Toggle+ label={t.notificationBounce}+ checked={config.notificationBounce}+ onChange={(notificationBounce) => update({ notificationBounce })}+ />+ </Row>+ <Row label={t.notificationDnd} hint={t.notificationDndHint}>+ <Toggle+ label={t.notificationDnd}+ checked={config.notificationDnd}+ onChange={(notificationDnd) => update({ notificationDnd })}+ />+ </Row>+ </Card>+ </>+ </>) : (<><Card>diff --cc apps/settings/src/config.tsindex 29bbd24,7729647..79d44cc--- a/apps/settings/src/config.ts+++ b/apps/settings/src/config.ts@@@ -1,7 -1,9 +1,10 @@@import { invoke } from "@tauri-apps/api/core";export type Language = "auto" | "es" | "en" | "fr";+export type NotificationPosition = "top-right" | "bottom-right";+ export type IslandStyle = "notch" | "bubble";+ export type GenieSpeed = "normal" | "fast" | "faster";+ export type DockPosition = "left" | "bottom" | "right";/** Mirrors `muelle_config::Config`. */export interface Config {@@@ -12,9 -14,10 +15,11 @@@iconSize: number;magnification: boolean;magnifiedSize: number;+ dockPosition: DockPosition;genie: boolean;+ genieSpeed: GenieSpeed;showMinimized: boolean;+ showPreviewCloseButton: boolean;menuBar: boolean;menuBarAutoHide: boolean;aiUsage: boolean;diff --cc apps/settings/src/controls.tsxindex b07356c,5a06023..e1ba7a1--- a/apps/settings/src/controls.tsx+++ b/apps/settings/src/controls.tsx@@@ -80,13 -83,11 +83,12 @@@ interface SliderPropsmin: number;max: number;label: string;- before?: string;- after?: string;++ unit?: string;disabled?: boolean;onChange: (value: number) => void;}- export function Slider({ value, min, max, label, before, after, disabled, onChange }: SliderProps) {-export function Slider({ value, min, max, label, disabled, onChange }: SliderProps) {++export function Slider({ value, min, max, label, unit = "px", disabled, onChange }: SliderProps) {const filled = ((value - min) / (max - min)) * 100;return (<div className="slider">@@@ -97,11 -97,12 +98,12 @@@min={min}max={max}value={value}- aria-valuetext={`${value} px`}++ aria-valuetext={`${value} ${unit}`}disabled={disabled}style={{ "--filled": `${filled}%` } as React.CSSProperties}onChange={(event) => onChange(Number(event.target.value))}/>- {after ? <span className="slider-edge">{after}</span> : null}- <output className="slider-value" aria-hidden="true">{value} px</output>++ <output className="slider-value" aria-hidden="true">{value} {unit}</output></div>);}diff --cc apps/settings/src/i18n/en.jsonindex 1e03eab,3bc9e54..d1ff5ee--- a/apps/settings/src/i18n/en.json+++ b/apps/settings/src/i18n/en.json@@@ -7,23 -7,49 +7,51 @@@"magnification": "Magnification","magnificationHint": "Icons grow as the pointer passes over them.","magnifiedSize": "Magnified size",- "autoHide": "Automatically hide and show the Dock",- "autoHideHint": "Rest the pointer at the bottom edge of any display to reveal the Dock there.",+ "dockPosition": "Position on screen",+ "dockPositionLeft": "Left",+ "dockPositionBottom": "Bottom",+ "dockPositionRight": "Right",+ "autoHide": "Automatically hide",+ "autoHideHint": "Rest the pointer at the Dock's edge to reveal it, on any display.","genie": "Genie effect","genieHint": "While it is on, windows do not use the Windows animations for maximizing or closing.",+ "genieSpeed": "Genie speed",+ "genieSpeedHint": "How long windows take to fly into the dock and back.",+ "genieSpeedNormal": "Normal",+ "genieSpeedFast": "Fast",+ "genieSpeedFaster": "Faster","genieOff": "Windows animations are off",- "genieOffHint": "The genie follows Windows' \"Animation effects\" setting, as every app should, so it does not play. Choosing \"Adjust for best performance\" in Windows turns it off too.",+ "genieOffHint": "Turn on Animation effects in Windows to play this effect.","genieOffAction": "Open Windows settings","showMinimized": "Show minimized windows",- "showMinimizedHint": "As thumbnails on the right side of the Dock, instead of inside their app's icon.",+ "showMinimizedHint": "Thumbnails separate from app icons.",+ "showPreviewCloseButton": "Show close button on previews",+ "showPreviewCloseButtonHint": "Displays a close button on window hover previews and allows middle-clicking to close.","menuBar": "Menu bar","menuBarHint": "Time, battery, and access to the Windows quick settings and notifications.",- "menuBarAutoHide": "Automatically hide and show the menu bar",- "menuBarAutoHideHint": "It appears when the pointer rests on the top edge of the screen, never over a window's close buttons.",- "aiUsage": "Show AI provider usage",- "aiUsageHint": "Reads your existing sessions. Queries each provider directly every five minutes and does not save credentials.",+ "menuBarAutoHide": "Automatically hide",+ "menuBarAutoHideHint": "Rest the pointer at the top edge to reveal it.",+ "menuBarMusic": "Show what's playing",+ "menuBarMusicHint": "Music and video, with controls. With music and AI off, the island disappears.",+ "aiUsage": "AI usage",+ "islandStyle": "Indicator style",+ "islandStyleHint": "Choose between the centered notch or a compact bubble next to the status indicators.",+ "islandStyleNotch": "Notch",+ "islandStyleBubble": "Bubble",+ "accessoryBattery": "Show accessory battery",+ "accessoryBatteryHint": "Supported mice and headsets. No device queries while off.",+ "aiUsageHint": "Uses your existing sessions; checks every 5 min. Never saves credentials.",+ "menuBarItems": "Status items",+ "menuBarBluetooth": "Bluetooth",+ "menuBarBluetoothHint": "Show Bluetooth status and open settings beside Wi-Fi.",+ "menuBarBatteryPercent": "Show battery percentage",+ "menuBarBatteryPercentHint": "Display the charge percentage next to the battery icon.",+ "menuBarSearch": "Search button",+ "menuBarSearchHint": "Show the Windows search button.",+ "menuBarTaskView": "Task View button",+ "menuBarTaskViewHint": "Show Task View to manage open windows and virtual desktops.",+ "menuBarWidgets": "Widgets button",+ "menuBarWidgetsHint": "Show the Widgets board button.","autostart": "Open Muelle at login","language": "Language","languageAuto": "Automatic",@@@ -71,20 -97,11 +99,24 @@@"zoom": "Zoom","updatesNow": "This version","shortcutsFolder": "Shortcuts folder",- "shortcutsFolderHint": "A folder at the right of the Dock: its contents open as a menu, with a submenu for each folder inside.",+ "shortcutsFolderHint": "Open a folder's contents from the Dock.","shortcutsFolderChoose": "Choose…","shortcutsFolderRemove": "Remove",+ "notifications": "Notifications",+ "notificationsEnabled": "Show notifications",+ "notificationsHint": "Displays macOS-style glass notification banners for apps and alerts.",+ "notificationPosition": "Position",+ "notificationPositionTopRight": "Top right",+ "notificationPositionBottomRight": "Bottom right",+ "notificationDuration": "Banner duration",+ "notificationBadges": "Badge app icons",+ "notificationBadgesHint": "Show unread notification count badge on the Dock icon.",+ "notificationBounce": "Bounce icon on alert",+ "notificationBounceHint": "Bounces the Dock icon when an app requests attention.",+ "notificationDnd": "Do Not Disturb",- "notificationDndHint": "Silences notification banners while keeping Dock badges."++ "notificationDndHint": "Silences notification banners while keeping Dock badges.",+ "groupAppearance": "Appearance",+ "githubTitle": "Muelle on GitHub",+ "githubStar": "Support with a star",+ "githubError": "Could not open GitHub. Try again."}diff --cc apps/settings/src/i18n/es.jsonindex 5f1110a,ab23a91..dc52e58--- a/apps/settings/src/i18n/es.json+++ b/apps/settings/src/i18n/es.json@@@ -7,23 -7,49 +7,51 @@@"magnification": "Ampliación","magnificationHint": "Los iconos crecen al pasar el cursor.","magnifiedSize": "Tamaño ampliado",- "autoHide": "Ocultar y mostrar el Dock automáticamente",- "autoHideHint": "Deja el puntero en el borde inferior de cualquier pantalla para mostrar el Dock allí.",+ "dockPosition": "Posición en la pantalla",+ "dockPositionLeft": "Izquierda",+ "dockPositionBottom": "Abajo",+ "dockPositionRight": "Derecha",+ "autoHide": "Ocultar automáticamente",+ "autoHideHint": "Deja el puntero en el borde del Dock para mostrarlo, en cualquier pantalla.","genie": "Efecto genio","genieHint": "Mientras está activo, las ventanas no usan las animaciones de Windows al maximizar ni al cerrar.",+ "genieSpeed": "Velocidad del genio",+ "genieSpeedHint": "Lo que tardan las ventanas en entrar al dock y en volver.",+ "genieSpeedNormal": "Normal",+ "genieSpeedFast": "Rápida",+ "genieSpeedFaster": "Muy rápida","genieOff": "Las animaciones de Windows están desactivadas",- "genieOffHint": "El genio sigue el ajuste «Efectos de animación» de Windows, como debe hacer toda app, así que no se reproduce. La opción «Ajustar para obtener el mejor rendimiento» también lo apaga.",+ "genieOffHint": "Activa «Efectos de animación» en Windows para reproducir este efecto.","genieOffAction": "Abrir la configuración de Windows","showMinimized": "Mostrar ventanas minimizadas",- "showMinimizedHint": "Como miniaturas a la derecha del Dock, en lugar de dentro del icono de su app.",+ "showMinimizedHint": "Miniaturas separadas de los iconos de las apps.",+ "showPreviewCloseButton": "Mostrar botón de cerrar en previsualizaciones",+ "showPreviewCloseButtonHint": "Muestra un botón de cerrar en las previsualizaciones y permite cerrar con clic central.","menuBar": "Barra superior","menuBarHint": "Hora, batería y acceso a los ajustes rápidos y las notificaciones de Windows.",- "menuBarAutoHide": "Ocultar y mostrar la barra superior automáticamente",- "menuBarAutoHideHint": "Aparece cuando el puntero se detiene en el borde superior de la pantalla, nunca encima de los botones de cerrar de una ventana.",- "aiUsage": "Mostrar uso de proveedores de IA",- "aiUsageHint": "Lee la cuota de las sesiones que ya tienes abiertas. Consulta directamente a cada proveedor cada cinco minutos y no guarda credenciales.",+ "menuBarAutoHide": "Ocultar automáticamente",+ "menuBarAutoHideHint": "Deja el puntero en el borde superior para mostrarla.",+ "menuBarMusic": "Mostrar lo que se reproduce",+ "menuBarMusicHint": "Música y vídeo, con controles. Sin música ni IA, la isla desaparece.",+ "aiUsage": "Uso de IA",+ "islandStyle": "Estilo del indicador",+ "islandStyleHint": "Elige entre la muesca centrada o una burbuja compacta junto a los indicadores de estado.",+ "islandStyleNotch": "Muesca",+ "islandStyleBubble": "Burbuja",+ "accessoryBattery": "Mostrar batería de accesorios",+ "accessoryBatteryHint": "Ratones y auriculares compatibles. Apagado, no los consulta.",+ "aiUsageHint": "Usa tus sesiones abiertas; consulta cada 5 min. No guarda credenciales.",+ "menuBarItems": "Elementos de estado",+ "menuBarBluetooth": "Bluetooth",+ "menuBarBluetoothHint": "Muestra el estado de Bluetooth y abre sus ajustes junto al Wi-Fi.",+ "menuBarBatteryPercent": "Mostrar porcentaje de batería",+ "menuBarBatteryPercentHint": "Muestra el nivel de carga junto al icono de la batería.",+ "menuBarSearch": "Botón de búsqueda",+ "menuBarSearchHint": "Muestra el botón de búsqueda de Windows.",+ "menuBarTaskView": "Botón de Vista de tareas",+ "menuBarTaskViewHint": "Muestra la Vista de tareas para ver ventanas y escritorios virtuales.",+ "menuBarWidgets": "Botón de Widgets",+ "menuBarWidgetsHint": "Muestra el botón del panel de widgets.","autostart": "Abrir Muelle al iniciar sesión","language": "Idioma","languageAuto": "Automático",@@@ -71,20 -97,11 +99,24 @@@"zoom": "Ampliar","updatesNow": "Esta versión","shortcutsFolder": "Carpeta de accesos directos",- "shortcutsFolderHint": "Una carpeta a la derecha del Dock: su contenido se abre como un menú, con un submenú por cada carpeta que contiene.",+ "shortcutsFolderHint": "Abre el contenido de una carpeta desde el Dock.","shortcutsFolderChoose": "Elegir…","shortcutsFolderRemove": "Quitar",+ "notifications": "Notificaciones",+ "notificationsEnabled": "Mostrar notificaciones",+ "notificationsHint": "Muestra alertas en banners de cristal estilo macOS para aplicaciones.",+ "notificationPosition": "Posición",+ "notificationPositionTopRight": "Superior derecha",+ "notificationPositionBottomRight": "Inferior derecha",+ "notificationDuration": "Duración del banner",+ "notificationBadges": "Insignias en los iconos",+ "notificationBadgesHint": "Muestra el contador de notificaciones pendientes en el icono del Dock.",+ "notificationBounce": "Animar icono al recibir alerta",+ "notificationBounceHint": "Hace rebotar el icono en el Dock cuando la app solicita atención.",+ "notificationDnd": "No molestar",- "notificationDndHint": "Silencia los banners de notificación manteniendo las insignias en el Dock."++ "notificationDndHint": "Silencia los banners de notificación manteniendo las insignias en el Dock.",+ "groupAppearance": "Aspecto",+ "githubTitle": "Muelle en GitHub",+ "githubStar": "Apoya con una estrella",+ "githubError": "No se pudo abrir GitHub. Inténtalo otra vez."}diff --cc apps/settings/src/i18n/fr.jsonindex ee995ba,f4ac412..1835725--- a/apps/settings/src/i18n/fr.json+++ b/apps/settings/src/i18n/fr.json@@@ -7,23 -7,49 +7,51 @@@"magnification": "Agrandissement","magnificationHint": "Les icônes grossissent au passage du pointeur.","magnifiedSize": "Taille agrandie",- "autoHide": "Masquer et afficher automatiquement le Dock",- "autoHideHint": "Laissez le pointeur sur le bord inférieur d'un écran pour y afficher le Dock.",+ "dockPosition": "Position à l'écran",+ "dockPositionLeft": "Gauche",+ "dockPositionBottom": "Bas",+ "dockPositionRight": "Droite",+ "autoHide": "Masquer automatiquement",+ "autoHideHint": "Laissez le pointeur sur le bord du Dock pour l'afficher, sur tout écran.","genie": "Effet génie","genieHint": "Tant qu'il est activé, les fenêtres n'utilisent pas les animations de Windows pour l'agrandissement et la fermeture.",+ "genieSpeed": "Vitesse du génie",+ "genieSpeedHint": "Le temps que mettent les fenêtres à entrer dans le Dock et à en revenir.",+ "genieSpeedNormal": "Normale",+ "genieSpeedFast": "Rapide",+ "genieSpeedFaster": "Très rapide","genieOff": "Les animations de Windows sont désactivées",- "genieOffHint": "L'effet génie suit le réglage « Effets d'animation » de Windows, comme toute app devrait le faire : il ne se joue donc pas. L'option « Ajuster afin d'obtenir les meilleures performances » le désactive aussi.",+ "genieOffHint": "Activez les effets d'animation dans Windows pour jouer cet effet.","genieOffAction": "Ouvrir les paramètres de Windows","showMinimized": "Afficher les fenêtres réduites",- "showMinimizedHint": "Sous forme de miniatures à droite du Dock, plutôt que dans l'icône de leur app.",+ "showMinimizedHint": "Des miniatures séparées des icônes des apps.",+ "showPreviewCloseButton": "Afficher le bouton de fermeture sur les aperçus",+ "showPreviewCloseButtonHint": "Affiche un bouton de fermeture sur les aperçus et permet de fermer avec le clic du milieu.","menuBar": "Barre de menus","menuBarHint": "Heure, batterie et accès aux paramètres rapides et aux notifications de Windows.",- "menuBarAutoHide": "Masquer et afficher automatiquement la barre de menus",- "menuBarAutoHideHint": "Elle apparaît quand le pointeur s'arrête sur le bord supérieur de l'écran, jamais par-dessus les boutons de fermeture d'une fenêtre.",- "aiUsage": "Afficher l'utilisation des fournisseurs d'IA",- "aiUsageHint": "Lit le quota des sessions que vous avez déjà ouvertes. Interroge directement chaque fournisseur toutes les cinq minutes et n'enregistre aucun identifiant.",+ "menuBarAutoHide": "Masquer automatiquement",+ "menuBarAutoHideHint": "Laissez le pointeur sur le bord supérieur pour l'afficher.",+ "menuBarMusic": "Afficher la lecture en cours",+ "menuBarMusicHint": "Musique et vidéo, avec commandes. Sans musique ni IA, l'îlot disparaît.",+ "aiUsage": "Utilisation de l'IA",+ "islandStyle": "Style de l'indicateur",+ "islandStyleHint": "Choisissez entre l'encoche centrée ou une bulle compacte à côté des indicateurs d'état.",+ "islandStyleNotch": "Encoche",+ "islandStyleBubble": "Bulle",+ "accessoryBattery": "Afficher la batterie des accessoires",+ "accessoryBatteryHint": "Souris et casques compatibles. Aucune interrogation si désactivé.",+ "aiUsageHint": "Utilise vos sessions existantes ; vérifie toutes les 5 min. Aucun identifiant enregistré.",+ "menuBarItems": "Éléments d'état",+ "menuBarBluetooth": "Bluetooth",+ "menuBarBluetoothHint": "Affiche le statut Bluetooth et ouvre ses paramètres à côté du Wi-Fi.",+ "menuBarBatteryPercent": "Afficher le pourcentage de batterie",+ "menuBarBatteryPercentHint": "Affiche le pourcentage à côté de l'icône de batterie.",+ "menuBarSearch": "Bouton de recherche",+ "menuBarSearchHint": "Affiche le bouton de recherche Windows.",+ "menuBarTaskView": "Bouton Vue des tâches",+ "menuBarTaskViewHint": "Affiche la Vue des tâches pour gérer les fenêtres et bureaux virtuels.",+ "menuBarWidgets": "Bouton Widgets",+ "menuBarWidgetsHint": "Affiche le bouton du panneau des widgets.","autostart": "Ouvrir Muelle à l'ouverture de session","language": "Langue","languageAuto": "Automatique",@@@ -71,20 -97,11 +99,24 @@@"zoom": "Agrandir","updatesNow": "Cette version","shortcutsFolder": "Dossier de raccourcis",- "shortcutsFolderHint": "Un dossier à droite du Dock : son contenu s'ouvre en menu, avec un sous-menu pour chaque dossier qu'il contient.",+ "shortcutsFolderHint": "Ouvrez le contenu d'un dossier depuis le Dock.","shortcutsFolderChoose": "Choisir…","shortcutsFolderRemove": "Retirer",+ "notifications": "Notifications",+ "notificationsEnabled": "Afficher les notifications",+ "notificationsHint": "Affiche des bannières de notification de style macOS pour les applications.",+ "notificationPosition": "Position",+ "notificationPositionTopRight": "En haut à droite",+ "notificationPositionBottomRight": "En bas à droite",+ "notificationDuration": "Durée de la bannière",+ "notificationBadges": "Badges sur les icônes",+ "notificationBadgesHint": "Affiche un badge de notifications non lues sur l'icône du Dock.",+ "notificationBounce": "Animer l'icône lors d'une alerte",+ "notificationBounceHint": "Fait rebondir l'icône dans le Dock lorsqu'une application demande de l'attention.",+ "notificationDnd": "Ne pas déranger",- "notificationDndHint": "Désactive les bannières de notification tout en conservant les badges du Dock."++ "notificationDndHint": "Désactive les bannières de notification tout en conservant les badges du Dock.",+ "groupAppearance": "Apparence",+ "githubTitle": "Muelle sur GitHub",+ "githubStar": "Soutenir avec une étoile",+ "githubError": "Impossible d'ouvrir GitHub. Réessayez."}diff --cc crates/muelle-core/src/notifications.rsindex 0af944d,0000000..773eecamode 100644,000000..100644--- a/crates/muelle-core/src/notifications.rs+++ b/crates/muelle-core/src/notifications.rs@@@ -1,374 -1,0 +1,490 @@@+use std::collections::HashMap;++use crate::layout::Rect;++/// Position of notification banners on the screen.+#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]+pub enum BannerPosition {+ #[default]+ TopRight,+ BottomRight,+}++/// A single notification message. Content remains strictly in-memory.+#[derive(Debug, Clone, PartialEq, Eq)]+pub struct NotificationItem {+ pub id: u64,+ pub app_id: String,+ pub app_name: String,+ pub title: String,+ pub body: String,+ pub icon_path: Option<String>,+ pub target_hwnd: Option<isize>,+ pub duration_ms: u64,+ pub elapsed_ms: u64,+ pub paused: bool,+}++impl NotificationItem {+ #[allow(clippy::too_many_arguments)]+ pub fn new(+ id: u64,+ app_id: String,+ app_name: String,+ title: String,+ body: String,+ icon_path: Option<String>,+ target_hwnd: Option<isize>,+ duration_ms: u64,+ ) -> Self {+ Self {+ id,+ app_id,+ app_name,+ title,+ body,+ icon_path,+ target_hwnd,+ duration_ms: duration_ms.max(1000),+ elapsed_ms: 0,+ paused: false,+ }+ }+}++/// Maximum number of banners shown simultaneously.+pub const MAX_VISIBLE_BANNERS: usize = 3;++/// Manages active notifications, stacking, auto-dismiss timers, and dock badges.+#[derive(Debug, Default)]+pub struct NotificationQueue {+ next_id: u64,+ items: Vec<NotificationItem>,+ hovered_id: Option<u64>,+ badges: HashMap<String, usize>,+}++impl NotificationQueue {+ pub fn new() -> Self {+ Self::default()+ }++ /// Allocates an ID and enqueues a notification.+ /// If `dnd` is active or the app is `muted`, banners are suppressed,+ /// but the app badge count is still incremented (unless muted).+ #[allow(clippy::too_many_arguments)]+ pub fn push(+ &mut self,+ app_id: String,+ app_name: String,+ title: String,+ body: String,+ icon_path: Option<String>,+ target_hwnd: Option<isize>,+ duration_ms: u64,+ dnd: bool,+ muted: bool,+ ) -> Option<u64> {+ if muted {+ return None;+ }++ // Increment dock badge count for the source app+ *self.badges.entry(app_id.clone()).or_insert(0) += 1;++ if dnd {+ return None;+ }++ self.next_id = self.next_id.wrapping_add(1);+ let id = self.next_id;+ let item = NotificationItem::new(+ id,+ app_id,+ app_name,+ title,+ body,+ icon_path,+ target_hwnd,+ duration_ms,+ );+ self.items.push(item);+ Some(id)+ }++ /// Advances timers for active notifications and returns IDs of expired ones.+ pub fn tick(&mut self, delta_ms: u64) -> Vec<u64> {+ let mut expired = Vec::new();+ for item in &mut self.items {+ if !item.paused {+ item.elapsed_ms = item.elapsed_ms.saturating_add(delta_ms);+ if item.elapsed_ms >= item.duration_ms {+ expired.push(item.id);+ }+ }+ }+ for id in &expired {+ self.dismiss(*id);+ }+ expired+ }++ /// Pauses timer while cursor is hovered over a banner.+ pub fn set_hovered(&mut self, id: Option<u64>) {+ self.hovered_id = id;+ for item in &mut self.items {+ item.paused = Some(item.id) == id;+ }+ }++ /// Dismisses a notification by ID.+ pub fn dismiss(&mut self, id: u64) -> Option<NotificationItem> {+ if let Some(pos) = self.items.iter().position(|it| it.id == id) {+ let item = self.items.remove(pos);+ if self.hovered_id == Some(id) {+ self.hovered_id = None;+ }+ Some(item)+ } else {+ None+ }+ }++ /// Dismisses all notifications originating from a specific app.+ pub fn dismiss_for_app(&mut self, app_id: &str) -> Vec<NotificationItem> {+ let mut removed = Vec::new();+ self.items.retain(|it| {+ if it.app_id == app_id {+ removed.push(it.clone());+ false+ } else {+ true+ }+ });+ if self+ .hovered_id+ .is_some_and(|h| removed.iter().any(|it| it.id == h))+ {+ self.hovered_id = None;+ }+ removed+ }++ /// Clears badge count when an app is focused or dismissed.+ pub fn clear_badge(&mut self, app_id: &str) {+ self.badges.remove(app_id);+ }++ /// Returns the badge count for an app.+ pub fn badge_count(&self, app_id: &str) -> usize {+ self.badges.get(app_id).copied().unwrap_or(0)+ }++ /// Returns all badge counts.+ pub fn all_badges(&self) -> &HashMap<String, usize> {+ &self.badges+ }++ /// Up to `MAX_VISIBLE_BANNERS` currently visible notifications.+ pub fn visible_items(&self) -> &[NotificationItem] {+ let count = self.items.len().min(MAX_VISIBLE_BANNERS);+ &self.items[..count]+ }++ /// Total number of active queued notifications.+ pub fn total_count(&self) -> usize {+ self.items.len()+ }++ /// Clears all notifications and badges.+ pub fn clear_all(&mut self) {+ self.items.clear();+ self.hovered_id = None;+ self.badges.clear();+ }+}++/// Standard layout parameters for notification cards.+pub const BANNER_WIDTH: f32 = 340.0;+pub const BANNER_HEIGHT: f32 = 72.0;+pub const BANNER_GAP: f32 = 10.0;+pub const BANNER_MARGIN: f32 = 16.0;++/// Calculates the screen bounds for a visible banner at `index` (0-based, top-to-bottom or bottom-to-top).+pub fn banner_bounds(index: usize, position: BannerPosition, work_area: Rect, scale: f32) -> Rect {+ let width = (BANNER_WIDTH * scale).round();+ let height = (BANNER_HEIGHT * scale).round();+ let gap = (BANNER_GAP * scale).round();+ let margin = (BANNER_MARGIN * scale).round();++ let x = work_area.x + work_area.width - width - margin;+ let y = match position {+ BannerPosition::TopRight => work_area.y + margin + (index as f32) * (height + gap),+ BannerPosition::BottomRight => {+ work_area.y + work_area.height - margin - height - (index as f32) * (height + gap)+ }+ };++ Rect {+ x,+ y,+ width,+ height,+ }+}++/// Close button ("✕") hit area on a notification banner (top-right corner of the banner).+pub fn banner_close_button_bounds(banner_rect: Rect, scale: f32) -> Rect {+ let size = (20.0 * scale).round().max(20.0);+ let padding = (8.0 * scale).round();+ Rect {+ x: banner_rect.width - size - padding,+ y: padding,+ width: size,+ height: size,+ }+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn test_push_and_expiration() {+ let mut queue = NotificationQueue::new();+ let id1 = queue+ .push(+ "slack".into(),+ "Slack".into(),+ "New message".into(),+ "Hello!".into(),+ None,+ None,+ 5000,+ false,+ false,+ )+ .unwrap();++ assert_eq!(queue.visible_items().len(), 1);+ assert_eq!(queue.badge_count("slack"), 1);++ // Advance 3000ms -> not expired+ let expired = queue.tick(3000);+ assert!(expired.is_empty());+ assert_eq!(queue.visible_items().len(), 1);++ // Advance another 2000ms -> expired+ let expired = queue.tick(2000);+ assert_eq!(expired, vec![id1]);+ assert_eq!(queue.visible_items().len(), 0);+ // Badge stays until focused/cleared+ assert_eq!(queue.badge_count("slack"), 1);+ }++ #[test]+ fn test_hover_pauses_timer() {+ let mut queue = NotificationQueue::new();+ let id = queue+ .push(+ "teams".into(),+ "Teams".into(),+ "Meeting".into(),+ "Starting now".into(),+ None,+ None,+ 5000,+ false,+ false,+ )+ .unwrap();++ // Hover pauses+ queue.set_hovered(Some(id));+ let expired = queue.tick(6000);+ assert!(expired.is_empty());+ assert_eq!(queue.visible_items().len(), 1);++ // Hover end resumes+ queue.set_hovered(None);+ let expired = queue.tick(5000);+ assert_eq!(expired, vec![id]);+ assert_eq!(queue.visible_items().len(), 0);+ }++ #[test]+ fn test_dnd_and_mute() {+ let mut queue = NotificationQueue::new();++ // Muted app: completely ignored, no badge, no banner+ let id_muted = queue.push(+ "noisy".into(),+ "Noisy".into(),+ "Spam".into(),+ "Buy now".into(),+ None,+ None,+ 5000,+ false,+ true,+ );+ assert!(id_muted.is_none());+ assert_eq!(queue.badge_count("noisy"), 0);++ // DND mode: banner suppressed, badge still increments+ let id_dnd = queue.push(+ "mail".into(),+ "Mail".into(),+ "Urgent".into(),+ "Invoice".into(),+ None,+ None,+ 5000,+ true, // dnd+ false,+ );+ assert!(id_dnd.is_none());+ assert_eq!(queue.badge_count("mail"), 1);+ assert_eq!(queue.visible_items().len(), 0);+ }++ #[test]+ fn test_banner_bounds_layout() {+ let work_area = Rect {+ x: 0.0,+ y: 32.0, // under menu bar+ width: 1920.0,+ height: 1048.0,+ };++ // Top right+ let b0 = banner_bounds(0, BannerPosition::TopRight, work_area, 1.0);+ let b1 = banner_bounds(1, BannerPosition::TopRight, work_area, 1.0);+ assert_eq!(b0.x, 1920.0 - BANNER_WIDTH - BANNER_MARGIN);+ assert_eq!(b0.y, 32.0 + BANNER_MARGIN);+ assert_eq!(b1.y, b0.y + BANNER_HEIGHT + BANNER_GAP);++ // Bottom right+ let br0 = banner_bounds(0, BannerPosition::BottomRight, work_area, 1.0);+ let br1 = banner_bounds(1, BannerPosition::BottomRight, work_area, 1.0);+ assert_eq!(br0.x, 1920.0 - BANNER_WIDTH - BANNER_MARGIN);+ assert_eq!(br0.y, 32.0 + 1048.0 - BANNER_MARGIN - BANNER_HEIGHT);+ assert_eq!(br1.y, br0.y - BANNER_HEIGHT - BANNER_GAP);+ }++++ #[test]++ fn test_burst_of_notifications() {++ let mut queue = NotificationQueue::new();++ let count = 25;++ let mut ids = Vec::new();++++ for i in 0..count {++ let app = if i % 2 == 0 { "app_a" } else { "app_b" };++ let id = queue++ .push(++ app.into(),++ format!("App {app}"),++ format!("Title {i}"),++ format!("Body {i}"),++ None,++ None,++ 5000,++ false,++ false,++ )++ .expect("should push notification");++ ids.push(id);++ }++++ // Only MAX_VISIBLE_BANNERS (3) are visible at a time++ assert_eq!(queue.visible_items().len(), MAX_VISIBLE_BANNERS);++ assert_eq!(queue.visible_items()[0].id, ids[0]);++ assert_eq!(queue.visible_items()[1].id, ids[1]);++ assert_eq!(queue.visible_items()[2].id, ids[2]);++++ // Badge counts accumulate correctly across all 25 notifications++ assert_eq!(queue.badge_count("app_a"), 13);++ assert_eq!(queue.badge_count("app_b"), 12);++++ // Dismissing the first 3 reveals the next 3++ for id in &ids[..3] {++ queue.dismiss(*id);++ }++ assert_eq!(queue.visible_items().len(), MAX_VISIBLE_BANNERS);++ assert_eq!(queue.visible_items()[0].id, ids[3]);++ assert_eq!(queue.visible_items()[1].id, ids[4]);++ assert_eq!(queue.visible_items()[2].id, ids[5]);++ }++++ #[test]++ fn test_app_exit_notification_dismissal() {++ let mut queue = NotificationQueue::new();++ queue.push(++ "app_x".into(),++ "App X".into(),++ "T1".into(),++ "B1".into(),++ None,++ None,++ 5000,++ false,++ false,++ );++ queue.push(++ "app_y".into(),++ "App Y".into(),++ "T2".into(),++ "B2".into(),++ None,++ None,++ 5000,++ false,++ false,++ );++ queue.push(++ "app_x".into(),++ "App X".into(),++ "T3".into(),++ "B3".into(),++ None,++ None,++ 5000,++ false,++ false,++ );++++ assert_eq!(queue.badge_count("app_x"), 2);++ assert_eq!(queue.badge_count("app_y"), 1);++++ // App X exits: remove all notifications for app_x and clear its badge++ let removed = queue.dismiss_for_app("app_x");++ assert_eq!(removed.len(), 2);++ queue.clear_badge("app_x");++++ assert_eq!(queue.badge_count("app_x"), 0);++ assert_eq!(queue.badge_count("app_y"), 1);++ assert_eq!(queue.visible_items().len(), 1);++ assert_eq!(queue.visible_items()[0].app_id, "app_y");++ }++++ #[test]++ fn test_banner_close_button_geometry() {++ let banner = Rect {++ x: 100.0,++ y: 50.0,++ width: BANNER_WIDTH,++ height: BANNER_HEIGHT,++ };++ let close_1x = banner_close_button_bounds(banner, 1.0);++ assert_eq!(close_1x.width, 20.0);++ assert_eq!(close_1x.height, 20.0);++ assert_eq!(close_1x.x, BANNER_WIDTH - 20.0 - 8.0);++ assert_eq!(close_1x.y, 8.0);++++ let close_2x = banner_close_button_bounds(banner, 2.0);++ assert_eq!(close_2x.width, 40.0);++ assert_eq!(close_2x.height, 40.0);++ assert_eq!(close_2x.x, BANNER_WIDTH - 40.0 - 16.0);++ assert_eq!(close_2x.y, 16.0);++ }+}diff --cc crates/muelle-shell/Cargo.tomlindex e6a7eec,87e5568..50dfcd7--- a/crates/muelle-shell/Cargo.toml+++ b/crates/muelle-shell/Cargo.toml@@@ -25,7 -27,7 +27,8 @@@ windows = { workspace = true, features"Win32_Storage_Packaging_Appx","Win32_System_Com","Win32_System_Com_StructuredStorage",+ "Win32_System_DataExchange",+ "Win32_System_Diagnostics_Debug","Win32_System_Power","Win32_System_ProcessStatus","Win32_System_Registry",diff --cc crates/muelle-shell/src/dock_link.rsindex d3d8daf,0ec64a4..59b863f--- a/crates/muelle-shell/src/dock_link.rs+++ b/crates/muelle-shell/src/dock_link.rs@@@ -79,35 -30,3 +79,66 @@@ pub fn notify_config_changed()}}}++/// Sends a notification payload to the running dock process via WM_COPYDATA.+/// Returns `true` if delivered successfully.+pub fn post_notification(payload: &NotificationPayload) -> bool {+ let raw = payload.encode();+ let bytes = raw.as_bytes();++ unsafe {+ let dock = match FindWindowW(DOCK_WINDOW_CLASS, None) {+ Ok(hwnd) => hwnd,+ Err(_) => return false,+ };++ let cds = COPYDATASTRUCT {+ dwData: NOTIFY_DATA_TAG,+ cbData: bytes.len() as u32,+ lpData: bytes.as_ptr() as *mut _,+ };++ let mut result = 0;+ let ok = SendMessageTimeoutW(+ dock,+ WM_COPYDATA,+ WPARAM(0),+ LPARAM(&cds as *const _ as isize),+ SMTO_ABORTIFHUNG,+ 2000,+ Some(&mut result),+ );+ ok.0 != 0+ }+}++++#[cfg(test)]++mod tests {++ use super::*;++++ #[test]++ fn test_notification_payload_roundtrip() {++ let payload = NotificationPayload {++ app_id: "com.example.app".into(),++ app_name: "Example App".into(),++ title: "Hello World".into(),++ body: "Notification body content with special chars: 🚀 <&>".into(),++ icon_path: Some("C:\\path\\to\\icon.png".into()),++ duration_secs: 10,++ };++ let encoded = payload.encode();++ let decoded = NotificationPayload::decode(&encoded).expect("should decode valid json");++ assert_eq!(decoded.app_id, payload.app_id);++ assert_eq!(decoded.app_name, payload.app_name);++ assert_eq!(decoded.title, payload.title);++ assert_eq!(decoded.body, payload.body);++ assert_eq!(decoded.icon_path, payload.icon_path);++ assert_eq!(decoded.duration_secs, payload.duration_secs);++ }++++ #[test]++ fn test_notification_payload_invalid_json() {++ assert!(NotificationPayload::decode("not valid json").is_none());++ assert!(NotificationPayload::decode("").is_none());++ }++}