Files
effectcraft/crates
vangel76 e0d9e024bd Graph Editor: follow the theme (plot, bar buttons, grid, keys, handles, curves) (#3202)
The Graph Editor painted its own surfaces with fixed dark greys: the plot
#1d1d1d and the unlit bar buttons #2c2c2c under the theme's text colour. In
the Light theme the plot stayed dark and the button labels (#222 on #2c2c2c,
1.1:1) only showed while hovered; lit buttons put white on a pale blue.

GraphPalette builds the editor's colours from the theme tokens once per frame:
the plot takes the Timeline's time graph background, the buttons a fill just
off the panel with the more readable label, the grid an opaque tint of the
plot. Keys, Bezier handles, the transform box and the curves have a darker
set for a pale plot, picked by the plot colour itself so it holds under the
brightness slider. theme.rs gains WCAG relative_luminance/contrast_ratio,
also used by the expression editor's contrast test.

Fixes #3202
2026-11-07 14:13:23 +01:00
..