Skip to content

Conversation

seankmartin
Copy link
Contributor

The overall idea here is to create something more baseline that could be reused across neuroglancer for simple dialogs that have a header and a footer. By the default the footer has a primary button, which just closes the dialog if nothing else is specified for it. And the header contains a title and a close icon. The body contains nothing.

Currently, this would allow removing custom code setting up different kinds of shader code editor overlays/dialogs but it also means we can take a little bit of complexity out of the screenshot dialog.

We're planning to have another header footer dialog in upcoming work with the annotation schema to edit the description for a property which is when we realised that some kind of base class and styling would be quite useful.

We also noticed while applying this that the screenshot dialog had some small missing hover states, so we've added those in.

Open to exact stylings there, don't feel strongly about those. The main aim was to reduce code duplication and have something to use as a basis for future dialogs. Overall, the dialogs would look something like this:

image
image
image

seankmartin and others added 24 commits June 6, 2025 15:50
This also involves a refactor. But primarily it is designed so that the dialogs which contain code editors can share styles and features across them.

The layer can also inform the header of the code editor, like "Annotation shader editor"
with the changes, the top row is now shared logic across layers, so a specific class is not needed as the style can be controlled from one place
Will remove or add together
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.

1 participant