diff infinite_canvas/theme.c @ 278:8d560f50ed4c

Improve infinite canvas interactions and browser chrome Render Lucide icons directly with Raylib, add searchable icon browsing, robust text editing, entity lifecycle animations, z-order-safe input, semantic themes, and animated editable browser controls. Document rendering, pinning, context, and component extension for future agents. Co-authored-by: Copilot <[email protected]> Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 22:16:14 -0700
parents b55c22cff335
children
line wrap: on
line diff
--- a/infinite_canvas/theme.c	Mon Aug 17 17:01:40 2026 -0700
+++ b/infinite_canvas/theme.c	Mon Aug 17 22:16:14 2026 -0700
@@ -87,8 +87,22 @@
         p_theme->border = (Color){63, 63, 70, 255};
         p_theme->text = (Color){244, 244, 245, 255};
         p_theme->text_muted = (Color){161, 161, 170, 255};
-        p_theme->accent = (Color){96, 165, 250, 255};
-        p_theme->accent_soft = (Color){30, 58, 95, 255};
+        p_theme->accent = (Color){167, 139, 250, 255};
+        p_theme->accent_soft = (Color){46, 35, 72, 255};
+        p_theme->on_accent = (Color){255, 255, 255, 255};
+        p_theme->selection = (Color){196, 181, 253, 230};
+        p_theme->entity_outline = (Color){255, 255, 255, 26};
+        p_theme->button = (Color){63, 63, 70, 255};
+        p_theme->button_hover = (Color){82, 82, 91, 255};
+        p_theme->button_active = (Color){124, 58, 237, 255};
+        p_theme->button_active_hover = (Color){139, 92, 246, 255};
+        p_theme->switch_track_off = (Color){63, 63, 70, 255};
+        p_theme->switch_track_off_hover = (Color){82, 82, 91, 255};
+        p_theme->switch_track_on = (Color){52, 211, 153, 255};
+        p_theme->switch_track_on_hover = (Color){110, 231, 183, 255};
+        p_theme->switch_thumb = (Color){250, 250, 250, 255};
+        p_theme->pin = (Color){251, 191, 36, 255};
+        p_theme->danger = (Color){248, 113, 113, 255};
         p_theme->shadow = (Color){0, 0, 0, 110};
         p_theme->toast_surface = (Color){24, 24, 27, 255};
         p_theme->toast_border = (Color){63, 63, 70, 255};
@@ -101,6 +115,20 @@
         p_theme->text_muted = (Color){113, 113, 122, 255};
         p_theme->accent = (Color){37, 99, 235, 255};
         p_theme->accent_soft = (Color){239, 246, 255, 255};
+        p_theme->on_accent = (Color){255, 255, 255, 255};
+        p_theme->selection = (Color){0, 122, 255, 230};
+        p_theme->entity_outline = (Color){0, 0, 0, 20};
+        p_theme->button = (Color){24, 24, 27, 255};
+        p_theme->button_hover = (Color){39, 39, 42, 255};
+        p_theme->button_active = (Color){37, 99, 235, 255};
+        p_theme->button_active_hover = (Color){59, 130, 246, 255};
+        p_theme->switch_track_off = (Color){205, 211, 221, 255};
+        p_theme->switch_track_off_hover = (Color){161, 161, 170, 255};
+        p_theme->switch_track_on = (Color){22, 163, 74, 255};
+        p_theme->switch_track_on_hover = (Color){34, 197, 94, 255};
+        p_theme->switch_thumb = (Color){255, 255, 255, 255};
+        p_theme->pin = (Color){217, 119, 6, 255};
+        p_theme->danger = (Color){220, 38, 38, 255};
         p_theme->shadow = (Color){15, 23, 42, 36};
         p_theme->toast_surface = (Color){255, 255, 255, 255};
         p_theme->toast_border = (Color){212, 216, 223, 255};