feat(autoseg): approved-colors editor in Series > Options#82
Merged
Conversation
Matures issue SynapseWeb#96: give users a GUI to view and edit the approved-color list autoseg import draws from, with the CVD-safe DEFAULT_AUTOSEG_PALETTE remaining the default. The "Autoseg import colors" group in Series > Options > View now hosts an editor (AutosegColorsWidget) alongside the color seed: the palette shows as clickable color swatches, each swatch opens QColorDialog to recolor it, and Add / Remove / "Reset to default" manage the list (floor of 2 colors, since the seed and Shuffle button need >=2 to reshuffle). It persists to the existing autoseg_color_palette option (computer-wide scope, same as the seed), storing [] when unchanged from the default so users keep tracking the curated palette. The live preview, Shuffle button and import all read that same option, so a custom palette takes effect immediately; already-imported traces keep their baked-in colors. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
dustenhubbard
enabled auto-merge (squash)
July 18, 2026 22:54
dustenhubbard
added a commit
that referenced
this pull request
Jul 23, 2026
Matures issue SynapseWeb#96: give users a GUI to view and edit the approved-color list autoseg import draws from, with the CVD-safe DEFAULT_AUTOSEG_PALETTE remaining the default. The "Autoseg import colors" group in Series > Options > View now hosts an editor (AutosegColorsWidget) alongside the color seed: the palette shows as clickable color swatches, each swatch opens QColorDialog to recolor it, and Add / Remove / "Reset to default" manage the list (floor of 2 colors, since the seed and Shuffle button need >=2 to reshuffle). It persists to the existing autoseg_color_palette option (computer-wide scope, same as the seed), storing [] when unchanged from the default so users keep tracking the curated palette. The live preview, Shuffle button and import all read that same option, so a custom palette takes effect immediately; already-imported traces keep their baked-in colors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First attempt at maturing the autoseg color feature (upstream SynapseWeb#96 direction): users who don't want the default colorblind-safe palette can now see and edit it.
autoseg_color_paletteoption (list of RGB); saving an unedited default stores[]so untouched users keep tracking future default-palette updates. Computer-wide scope, matching the seed.20 new tests; suite 1212 passed, 5 pre-existing xfails.
🤖 Generated with Claude Code