Skip to content

Restore missing default palette colors#2161

Closed
SpaceXItalia wants to merge 1 commit into
PintaProject:masterfrom
SpaceXItalia:fix-default-palette-48-colors
Closed

Restore missing default palette colors#2161
SpaceXItalia wants to merge 1 commit into
PintaProject:masterfrom
SpaceXItalia:fix-default-palette-48-colors

Conversation

@SpaceXItalia

Copy link
Copy Markdown

This restores the 14 darker colors that were missing from the default palette, bringing PaletteHelper.EnumerateDefaultColors() back to 48 colors.

The restored colors are inserted alongside their matching hue groups so the palette remains ordered consistently with the current layout while recovering the older default palette coverage.

A focused unit test was added to verify that the default palette contains 48 colors.

Fixes #812.

Tested:

  • dotnet test tests/Pinta.Core.Tests/Pinta.Core.Tests.csproj --filter DefaultPaletteHasExpectedColorCount

This PR was prepared with AI assistance using OpenAI Codex and manually reviewed before submission.

@cameronwhite

Copy link
Copy Markdown
Member

The restored colors are inserted alongside their matching hue groups so the palette remains ordered consistently with the current layout while recovering the older default palette coverage

These changes don't really address the layout issue from the referenced bug report - attached is a screenshot of what it looks like, which isn't very pleasing to the eye IMO

Screenshot 2026-05-31 at 12 49 56 PM

The unit test doesn't really add much value either, but is the type of test LLMs will happily generate. I don't think there was any need to use AI here to change the palette colours.

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.

default palette missing 14 colors

2 participants