From 7ed113191d3733ccd680f49fbc8bed99aa00a650 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 05:00:49 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20Circuito=20and=20=C3=81baco=20accen?= =?UTF-8?q?ts=20(#C99A06,=20#A23B72)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The two new apps of the Engineering suite join NDL with their key colours: Circuito a copper amber, Ábaco a plum. Adds accents.json, the generated nodalia-theme ramps (Accent::Circuito, Accent::Abaco) and the tokens table. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_018FLRxZCv26XiZGdBRbariz --- CHANGELOG.md | 1 + docs/iconography.md | 3 +- docs/tokens.md | 2 + packages/egui/crate/src/tokens.rs | 86 ++++++++++++++++++++++++++++++- packages/tokens/src/accents.json | 4 +- 5 files changed, 93 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fce8b9..7d2d27e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Formato basado en [Keep a Changelog](https://keepachangelog.com/es-ES/1.1.0/). V ## [Sin publicar] ### Añadido +- Acentos de Circuito (`circuito`, `#C99A06`, ámbar de cobre) y de Ábaco (`abaco`, `#A23B72`, ciruela), las dos apps nuevas de la suite de ingeniería, en `accents.json`, `nodalia-theme` (`Accent::Circuito`, `Accent::Abaco`) y la tabla de tokens; sus iconos serán los retratos de Gustav Kirchhoff y John Napier (`docs/iconography.md`). - Acento de Orbe (`orbe`, `#DDA10A`) para el motor de videojuegos de Nodalia, en `accents.json`, `nodalia-theme` (`Accent::Orbe`) y la tabla de tokens, y su fondo de DMG en `tools/dmg-background`; su icono será el retrato de Johannes Kepler (`docs/iconography.md`). - Acento de Código (`codigo`, `#0B9A80`) para el IDE de Nodalia, en `accents.json`, `nodalia-theme` (`Accent::Codigo`) y la tabla de tokens; su icono será el retrato de Ada Lovelace (`docs/iconography.md`). - `nodalia-assistant` (crate nuevo, `packages/assistant`): el asistente de IA de las apps de oficina. Sin servidores de Nodalia: la persona elige proveedor (Claude, OpenAI, Gemini, Mistral, OpenRouter, Ollama local u otro servidor compatible) y pone su propia clave, que vive en el llavero del sistema. Bucle de herramientas con aprobación («Aplicar», «Omitir», «Aplicar todo») y «Deshacer» del turno entero. Con la característica `egui`, `ui::{button, panel, preferences}` dibujan el botón con la insignia del proveedor, el panel de chat y la sección de Preferencias iguales en todas las apps. Sin logotipos de terceros (insignias neutras y `set_mark` para marcas con permiso). En inglés y español. Especificación en `docs/suites/assistant.md`. diff --git a/docs/iconography.md b/docs/iconography.md index 145d615..eae4a48 100644 --- a/docs/iconography.md +++ b/docs/iconography.md @@ -82,7 +82,8 @@ Cada app Nodalia lleva como icono el retrato de una figura histórica ligada a l | Lienzo | Diego Velázquez | Vinilo | Ludwig van Beethoven | | Luz | Louis Daguerre | Vortia | Daniel Bernoulli | | Hito | Lillian Moller Gilbreth | Código | Ada Lovelace | -| Orbe | Johannes Kepler | | | +| Orbe | Johannes Kepler | Circuito | Gustav Kirchhoff | +| Ábaco | John Napier | | | `tools/app-portrait/portrait.py` hace la ilustración a partir del retrato descargado (ver su README); cada app la convierte en su SVG maestro y en todos sus tamaños, y nodalix-icon-theme la ajusta a la retícula de Colloid. diff --git a/docs/tokens.md b/docs/tokens.md index a2f2781..9798ff3 100644 --- a/docs/tokens.md +++ b/docs/tokens.md @@ -52,6 +52,8 @@ Un acento solo cambia `color.accent.*`, `color.selection.bg`, `color.border.focu | | | | `hito` | `#3D9A2B` | | | | | `codigo` | `#0B9A80` | | | | | `orbe` | `#DDA10A` | +| | | | `circuito` | `#C99A06` | +| | | | `abaco` | `#A23B72` | Cómo se activa: `` en web, `Accent::Vortia` en Rust, el grupo `accent` de `nodalia-qt.json` en Qt Widgets. GTK y Qt Quick no tienen acentos todavía. diff --git a/packages/egui/crate/src/tokens.rs b/packages/egui/crate/src/tokens.rs index 1465004..b64d6ab 100644 --- a/packages/egui/crate/src/tokens.rs +++ b/packages/egui/crate/src/tokens.rs @@ -317,10 +317,12 @@ pub enum Accent { Hito, Codigo, Orbe, + Circuito, + Abaco, } impl Accent { - pub const ALL: [Accent; 24] = [Accent::Nodalia, Accent::Nodalix, Accent::Vortia, Accent::Brujula, Accent::Vinilo, Accent::Buzon, Accent::Letra, Accent::Celdas, Accent::Lamina, Accent::Papel, Accent::Pliego, Accent::Pluma, Accent::Lienzo, Accent::Luz, Accent::Toma, Accent::Pulso, Accent::Forja, Accent::Torno, Accent::Trama, Accent::Agora, Accent::Anima, Accent::Hito, Accent::Codigo, Accent::Orbe]; + pub const ALL: [Accent; 26] = [Accent::Nodalia, Accent::Nodalix, Accent::Vortia, Accent::Brujula, Accent::Vinilo, Accent::Buzon, Accent::Letra, Accent::Celdas, Accent::Lamina, Accent::Papel, Accent::Pliego, Accent::Pluma, Accent::Lienzo, Accent::Luz, Accent::Toma, Accent::Pulso, Accent::Forja, Accent::Torno, Accent::Trama, Accent::Agora, Accent::Anima, Accent::Hito, Accent::Codigo, Accent::Orbe, Accent::Circuito, Accent::Abaco]; /// The name used by the other NDL adapters (`data-accent` on the web). pub const fn name(self) -> &'static str { @@ -349,6 +351,8 @@ impl Accent { Accent::Hito => "hito", Accent::Codigo => "codigo", Accent::Orbe => "orbe", + Accent::Circuito => "circuito", + Accent::Abaco => "abaco", } } } @@ -1274,6 +1278,86 @@ impl Mode { p.accent_text = Rgba::new(241, 195, 110, 255); p.selection_bg = Rgba::new(98, 69, 3, 255); } + (Accent::Circuito, Mode::Light) => { + p.text_link = Rgba::new(117, 88, 3, 255); + p.border_focus = Rgba::new(148, 112, 3, 255); + p.accent_default = Rgba::new(148, 112, 3, 255); + p.accent_hover = Rgba::new(117, 88, 3, 255); + p.accent_pressed = Rgba::new(95, 71, 3, 255); + p.accent_subtle = Rgba::new(248, 240, 222, 255); + p.accent_text = Rgba::new(117, 88, 3, 255); + p.selection_bg = Rgba::new(248, 240, 222, 255); + } + (Accent::Circuito, Mode::Dark) => { + p.text_link = Rgba::new(222, 173, 35, 255); + p.border_focus = Rgba::new(222, 173, 35, 255); + p.accent_default = Rgba::new(222, 173, 35, 255); + p.accent_hover = Rgba::new(238, 197, 100, 255); + p.accent_pressed = Rgba::new(199, 154, 22, 255); + p.accent_subtle = Rgba::new(66, 49, 6, 255); + p.accent_text = Rgba::new(222, 173, 35, 255); + p.selection_bg = Rgba::new(66, 49, 6, 255); + } + (Accent::Circuito, Mode::LightHc) => { + p.text_link = Rgba::new(95, 71, 3, 255); + p.border_focus = Rgba::new(95, 71, 3, 255); + p.accent_default = Rgba::new(95, 71, 3, 255); + p.accent_hover = Rgba::new(66, 49, 6, 255); + p.accent_pressed = Rgba::new(49, 36, 4, 255); + p.accent_subtle = Rgba::new(248, 240, 222, 255); + p.accent_text = Rgba::new(95, 71, 3, 255); + p.selection_bg = Rgba::new(248, 240, 222, 255); + } + (Accent::Circuito, Mode::DarkHc) => { + p.text_link = Rgba::new(238, 197, 100, 255); + p.border_focus = Rgba::new(238, 197, 100, 255); + p.accent_default = Rgba::new(238, 197, 100, 255); + p.accent_hover = Rgba::new(248, 240, 222, 255); + p.accent_pressed = Rgba::new(222, 173, 35, 255); + p.accent_subtle = Rgba::new(66, 49, 6, 255); + p.accent_text = Rgba::new(238, 197, 100, 255); + p.selection_bg = Rgba::new(95, 71, 3, 255); + } + (Accent::Abaco, Mode::Light) => { + p.text_link = Rgba::new(155, 56, 109, 255); + p.border_focus = Rgba::new(194, 72, 138, 255); + p.accent_default = Rgba::new(194, 72, 138, 255); + p.accent_hover = Rgba::new(155, 56, 109, 255); + p.accent_pressed = Rgba::new(125, 45, 88, 255); + p.accent_subtle = Rgba::new(246, 239, 242, 255); + p.accent_text = Rgba::new(155, 56, 109, 255); + p.selection_bg = Rgba::new(246, 239, 242, 255); + } + (Accent::Abaco, Mode::Dark) => { + p.text_link = Rgba::new(233, 157, 192, 255); + p.border_focus = Rgba::new(233, 157, 192, 255); + p.accent_default = Rgba::new(233, 157, 192, 255); + p.accent_hover = Rgba::new(231, 191, 208, 255); + p.accent_pressed = Rgba::new(230, 127, 177, 255); + p.accent_subtle = Rgba::new(88, 32, 61, 255); + p.accent_text = Rgba::new(233, 157, 192, 255); + p.selection_bg = Rgba::new(88, 32, 61, 255); + } + (Accent::Abaco, Mode::LightHc) => { + p.text_link = Rgba::new(125, 45, 88, 255); + p.border_focus = Rgba::new(125, 45, 88, 255); + p.accent_default = Rgba::new(125, 45, 88, 255); + p.accent_hover = Rgba::new(88, 32, 61, 255); + p.accent_pressed = Rgba::new(67, 22, 46, 255); + p.accent_subtle = Rgba::new(246, 239, 242, 255); + p.accent_text = Rgba::new(125, 45, 88, 255); + p.selection_bg = Rgba::new(246, 239, 242, 255); + } + (Accent::Abaco, Mode::DarkHc) => { + p.text_link = Rgba::new(231, 191, 208, 255); + p.border_focus = Rgba::new(231, 191, 208, 255); + p.accent_default = Rgba::new(231, 191, 208, 255); + p.accent_hover = Rgba::new(246, 239, 242, 255); + p.accent_pressed = Rgba::new(233, 157, 192, 255); + p.accent_subtle = Rgba::new(88, 32, 61, 255); + p.accent_text = Rgba::new(231, 191, 208, 255); + p.selection_bg = Rgba::new(125, 45, 88, 255); + } } p } diff --git a/packages/tokens/src/accents.json b/packages/tokens/src/accents.json index 511dd57..b81261a 100644 --- a/packages/tokens/src/accents.json +++ b/packages/tokens/src/accents.json @@ -22,5 +22,7 @@ "anima": "#6B4CE8", "hito": "#3D9A2B", "codigo": "#0B9A80", - "orbe": "#DDA10A" + "orbe": "#DDA10A", + "circuito": "#C99A06", + "abaco": "#A23B72" } From 6edf3d6c8f2ccbae3227e477e641139d77daa2a3 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 14:39:20 +0000 Subject: [PATCH 2/2] fix(theme): centre the text of the search field vertically The shared search field let egui put the text at the top of NDL's tall field, so it sat above the magnifier. It now uses the same left-centre alignment as the other fields. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_018FLRxZCv26XiZGdBRbariz --- packages/egui/crate/src/creator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/egui/crate/src/creator.rs b/packages/egui/crate/src/creator.rs index 9cfe06a..7001499 100644 --- a/packages/egui/crate/src/creator.rs +++ b/packages/egui/crate/src/creator.rs @@ -422,6 +422,7 @@ pub fn search_field( egui::TextEdit::singleline(text) .frame(Frame::NONE) .hint_text(hint) + .align(egui::Align2::LEFT_CENTER) .desired_width(ui.available_width()), ) })