aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/dupre-revised.json
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
commit37c50812684c9e7d9461d7ae719169a40fc86826 (patch)
tree50debf86be16bf8b6f45c3b12c9cc89f60189f28 /scripts/theme-studio/dupre-revised.json
parentd2c63a57193b6f966b493ae17170e966055730ea (diff)
downloaddotemacs-37c50812684c9e7d9461d7ae719169a40fc86826.tar.gz
dotemacs-37c50812684c9e7d9461d7ae719169a40fc86826.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/dupre-revised.json')
0 files changed, 0 insertions, 0 deletions