Skip to content

Show checkerboard background for transparent ColorView palette items - #21613

Merged
MrJul merged 1 commit into
AvaloniaUI:masterfrom
ShareX:feature/color-picker-checkerboard-background
Jul 6, 2026
Merged

MrJul merged 1 commit into
AvaloniaUI:masterfrom
ShareX:feature/color-picker-checkerboard-background

Conversation

@Jaex

@Jaex Jaex commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the existing ColorPicker checkerboard transparency background behind palette color swatches.

This makes palette entries with alpha below 255, including Colors.Transparent, visibly indicate transparency instead of appearing as empty or flat swatches.

Before:

RIEGCxUXsXCQ

After:

TVn8KsycZtLe

Fixes #20828

Changes

  • Updates ColorView palette item templates in Fluent and Simple themes.
  • Updates ColorPicker dropdown palette item templates in Fluent and Simple themes for consistency.
  • Reuses the existing ColorControlCheckeredBackgroundBrush already used by preview controls.

Verification

  • Built Avalonia.Controls.ColorPicker successfully.
  • Confirmed the XAML changes compile with no warnings or errors.

@MrJul MrJul added enhancement backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch labels Jun 18, 2026
@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.1.999-cibuild0066628-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@cla-avalonia

cla-avalonia commented Jun 18, 2026 •

Copy link
Copy Markdown
Collaborator
  • All contributors have signed the CLA.

@Jaex

Jaex commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@cla-avalonia agree

@robloo

robloo commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

This looks great to me! Thanks so much for taking the time to add it. Slipped my mind...

@MrJul MrJul removed the backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch label Jun 23, 2026

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrJul
MrJul added this pull request to the merge queue Jul 6, 2026
Merged via the queue into AvaloniaUI:master with commit 04e8b20 Jul 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show checkerboard pattern for transparent items in ColorView palette

5 participants