git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commitde6b1f15b34a1c700bb846dc9a63250f84e10b41
parentb70e528c0c
authorLucas Galante <[email protected]>
date2026-08-24 12:56
color selector: colorless text field

The hex field wore its own blue editing background and blue editing border.
One configurable textbox background regardless of editing (the TextBox
convention — the caret is the editing affordance) and a brighter neutral
grey for the editing border. Hover/idle greys unchanged.

Committed file-precise: the concurrent control-relief work elsewhere in this
tree (layout.rs/button.rs/checkbox.rs inset_face etc.) is another session's.

 src/widget/input/color_selector.rs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/widget/input/color_selector.rs b/src/widget/input/color_selector.rs
index 16311d6..cf3ddc6 100644
--- a/src/widget/input/color_selector.rs
+++ b/src/widget/input/color_selector.rs
@@ -171,13 +171,13 @@ impl Paint for ColorSelector {
         let pick_x = rect.x + rect.width * 0.65;
         let pick_w = rect.width * 0.35;
 
-        let bg_color = if self.editing {
-            [0.06, 0.10, 0.18, 1.0]
-        } else {
-            [0.08, 0.08, 0.12, 1.0]
-        };
+        // The text field stays colorless: one configurable textbox background
+        // regardless of editing (the TextBox convention — the caret is the
+        // editing affordance), and neutral greys for the border. The old blue
+        // editing bg/border were this widget's own invention.
+        let bg_color = crate::colors::textbox_background_color();
         let border_color = if self.editing {
-            [0.20, 0.50, 0.85, 1.0]
+            [0.45, 0.45, 0.52, 1.0]
         } else if self.hovered {
             [0.25, 0.25, 0.35, 1.0]
         } else {