Skip to content

Results: Grey out and explain Show on Canvas layers the results can't use - #395

Open
danyill wants to merge 3 commits into
mainfrom
feat/results-layers-availability
Open

danyill wants to merge 3 commits into
mainfrom
feat/results-layers-availability

Conversation

@danyill

@danyill danyill commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Closes #385

  • Show on Canvas layers that the results on screen can't use are now disabled, in italics and greyed. Their tooltip and status tip give the reason, for example "No costs in these results" or "Run the simulation first".
  • The rules live in one pure function, layer_availability in raptor/gui/overlay_layers.py. They come from what each layer's painter actually reads. LAYERS is the single list of layers, and the tests are parametrized over it.
  • If the selected layer stops being usable, the combo resets to "No canvas overlay". Before, the combo kept showing a layer that had gone off.
  • The app stylesheet overrides the palette's disabled text colour, so the greyed items use the theme's muted token. They are re-greyed when the theme changes.
  • pt_BR strings added.

The app stylesheet overrides the palette's disabled text, so the combo
sets the muted token itself and re-applies it when the theme changes.

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.

Results view: hide or italicise layers that can't be used

1 participant