Skip to content

Checkerboard background for clear visualization of palette colors with transparency#1759

Merged
cameronwhite merged 5 commits into
PintaProject:masterfrom
Lehonti:feature/palette_checkerboard_background
Sep 20, 2025
Merged

Checkerboard background for clear visualization of palette colors with transparency#1759
cameronwhite merged 5 commits into
PintaProject:masterfrom
Lehonti:feature/palette_checkerboard_background

Conversation

@Lehonti

@Lehonti Lehonti commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

The code corresponding to the feature can be examined in 4367073.

On the way I also changed StatusBarColorPaletteWidget (and related classes) to receive IPaletteService instead of PaletteManager.

I am selecting blue with an alpha of 128, and transparent. You can see the result by looking at the checkered spots:

grafik

Before this change these spots would have looked (in the case of dark mode) dark blue and very dark gray, like the background.

Note: You will notice that I'm not showing a screenshot of the old behavior. I simply can't start Pinta anymore. If I try to run dotnet run --project Pinta the command returns with no output. I had to use the cloud build in order to run my changes, and even then I had to try in another computer, because neither 3.0.3 nor the development build would run of mine. And now neither of them runs on either computer. No combination of installing/uninstalling/restarting computer/building from source/cleaning .NET solution will get Pinta to run. I don't know what's going on. For context, both are Windows machines, one of them is Windows 10 and another one is Windows 11.

Update: I got Pinta to run by deleting AppData/Roaming/Pinta. This is what it looked like before this change, but after fixing the bug that prevented changing colors in the Palette (so 3.0.3 didn't work for this):

grafik

Update: Commit 9082e84 adds this feature to the primary/secondary color swatches, too

...And also `IChromeService`, instead of their concrete implementatons `PaletteManager` and `ChromeManager`. The `IPaletteService` interface had to be extended with the properties that this substitution requires.
@Lehonti Lehonti marked this pull request as ready for review September 18, 2025 22:55
Only draw checkered pattern if there is transparency
@cameronwhite

Copy link
Copy Markdown
Member

Looks good ,thanks!

@cameronwhite cameronwhite merged commit 5a3f058 into PintaProject:master Sep 20, 2025
7 checks passed
@Lehonti Lehonti deleted the feature/palette_checkerboard_background branch September 20, 2025 06:00
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.

2 participants