Skip to content

Canvas: Show a state colour legend while debugging or animating - #396

Open
danyill wants to merge 3 commits into
mainfrom
feat/canvas-state-legend
Open

danyill wants to merge 3 commits into
mainfrom
feat/canvas-state-legend

Conversation

@danyill

@danyill danyill commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Closes #384

  • A compact legend of the state colours appears at the bottom right of the canvas during a Debug session or an animated run. It is a child of the viewport, so it doesn't pan, zoom or export, and it lets mouse clicks pass through. It wraps to two rows on a narrow canvas.
  • Its entries come from the live colouring table (_LIVE_STATE_COLOURS), so the legend can't drift from the colours on the canvas.
  • New toggle View ▸ State Legend (key tip K), on by default and stored in QSettings. It takes effect at once, even mid-session.
  • The ribbon snapshot, command reference (manual-reference.adoc, manual.html) and pt_BR catalogue are regenerated.

The legend lists the 8 block states. The node-only Degraded colour and the phased stress shades are not in the live table, so they are not listed.

A compact key along the bottom right of the canvas names each block state
colour during a Debug session or an animated run. It reads the live
colour table, so it cannot drift. View > State Legend turns it off.
…nces

Failure Effects View colours blocks with the same states, so the legend
shows there too. The View ribbon button added a column that shrank
View ▸ Appearance at 1280 px on CI fonts, so the on/off setting is now a
Preferences checkbox (and the command stays in command search).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Canvas colour legend while debugging and animating

1 participant