aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/test-app-util.mjs
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-10 15:23:50 -0500
committerCraig Jennings <c@cjennings.net>2026-06-10 15:23:50 -0500
commita1cb3474fd5d54bd6a301edda1cd5151666306b2 (patch)
tree577fb52705146d84ef6d30317ecb10a0c18daecf /scripts/theme-studio/test-app-util.mjs
parent65db23f4a4532658c4112adf6121020779b20e72 (diff)
downloaddotemacs-a1cb3474fd5d54bd6a301edda1cd5151666306b2.tar.gz
dotemacs-a1cb3474fd5d54bd6a301edda1cd5151666306b2.zip
fix(theme-studio): derive box bevel colors from the face background
The released/pressed bevel was a flat translucent white/black overlay, which reads weaker than the box Emacs draws. reliefColors in colormath.js now ports Emacs 30's x_alloc_lighter_color: highlight = bg x1.2, shadow = bg x0.6, an additive boost for dark backgrounds, and the same-color fallback for pure black and white. boxCss takes the face's effective bg and derives both edges from it. Pressed swaps the pair, and the translucent pair remains only when no bg is known. Width stays 1px because dupre's :line-width -1 draws 1px lines in Emacs too. The gap was color strength, not width. Five node tests pin hand-computed fixtures from the C source, and a new #beveltest gate pins the wiring.
Diffstat (limited to 'scripts/theme-studio/test-app-util.mjs')
0 files changed, 0 insertions, 0 deletions