From c0e9ffbd1875a340a8514d0fe1ff40f8a44cce34 Mon Sep 17 00:00:00 2001 From: dingo Date: Tue, 17 Mar 2026 08:36:31 -0400 Subject: [PATCH] Feature: native colour picker for model tint in card editor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the plain hex text input + static swatch with a native (Bootstrap form-control-color) + text field combo. Clicking the swatch opens the browser's colour picker and updates the hex field in real-time. An × button clears the value back to null (no tint). The text field still accepts manual hex entry and the picker reflects the change on the next interaction. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .../Components/Pages/Cards/CardEditor.razor | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Server/src/SOR.Admin/Components/Pages/Cards/CardEditor.razor b/Server/src/SOR.Admin/Components/Pages/Cards/CardEditor.razor index 55b5409..2dd25cb 100644 --- a/Server/src/SOR.Admin/Components/Pages/Cards/CardEditor.razor +++ b/Server/src/SOR.Admin/Components/Pages/Cards/CardEditor.razor @@ -267,11 +267,20 @@ else
+ @if (!string.IsNullOrWhiteSpace(_card.ModelTintColor)) { - + }
Multiplicative hex tint. Null = white (no tint).