Fixes colour preview chips in character setup (#22576)

fixes #22289

- bugfix: "Colour chips in character setup are correctly coloured
again."

this only worked previously because byond's ie version was so old it
didn't care, afaik

also the circles in the loadout i just didnt get a picture

<img width="336" height="304" alt="image"
src="https://github.com/user-attachments/assets/f43912d6-22eb-452a-bac1-fff100a2f7b0"
/>
This commit is contained in:
lew
2026-06-03 15:14:36 +00:00
committed by GitHub
parent 7b0974dae3
commit 8f9c3f6e82
3 changed files with 7 additions and 3 deletions
@@ -9,7 +9,7 @@
#define SQL_PREFERENCES 0x2
// General-purpose helper for drawing a colored box.
#define HTML_RECT(color) "&nbsp;<div style=\"display:inline;height:10px;width:30px;background:'[color || "#FFFFFF"]'\"></div>&nbsp;"
#define HTML_RECT(color) "&nbsp;<div style=\"display:inline-block;height:10px;width:30px;background:[color || "#FFFFFF"]\"></div>&nbsp;"
// A bit of a hack to allow unit testing of category items.
#ifdef UNIT_TEST