Skip to content

feat(autoseg): approved-colors editor in Series > Options#82

Merged
dustenhubbard merged 1 commit into
mainfrom
feat/autoseg-palette-editor
Jul 18, 2026
Merged

feat(autoseg): approved-colors editor in Series > Options#82
dustenhubbard merged 1 commit into
mainfrom
feat/autoseg-palette-editor

Conversation

@dustenhubbard

Copy link
Copy Markdown
Owner

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.

  • New 'Autoseg import colors' group in Series > Options > View: the palette as clickable swatches; Add / Edit (double-click) / Remove via QColorDialog; Reset to default restores the CVD-safe set. Seed field lives in the same group.
  • Backed by the existing autoseg_color_palette option (list of RGB); saving an unedited default stores [] so untouched users keep tracking future default-palette updates. Computer-wide scope, matching the seed.
  • Minimum 2 colors (shuffle needs >=2 to mean anything). No CVD guard on custom colors by design (user's prerogative).
  • Preview/shuffle/import all read the same option: custom palettes apply immediately; already-imported traces never recolor (PR feat(autoseg): clear shuffle control for import colors #80 behavior preserved, adversarially re-verified).
  • Note: changing the palette LENGTH reshuffles all future id->color assignments (inherent to hash-mod-length; same class as the seed knob).

20 new tests; suite 1212 passed, 5 pre-existing xfails.

🤖 Generated with Claude Code

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
dustenhubbard enabled auto-merge (squash) July 18, 2026 22:54
@dustenhubbard
dustenhubbard merged commit cdda15a into main Jul 18, 2026
1 check passed
@dustenhubbard
dustenhubbard deleted the feat/autoseg-palette-editor branch July 18, 2026 22:55
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.
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