Skip to content

Conversation

@h0lg
Copy link
Contributor

@h0lg h0lg commented Dec 12, 2024

Adds a small sample program to list and sort named Avalonia UI colors by different color channels (R/G/B/A, H/S/V, H/S/L).
I originally built this as a tool for prototyping control colors during theming - namely finding color examples of a certain hue or brightness range. E.g. finding a matching bright text color for a dark background and vice versa.

It poses the question how to create empty horizontal WrapPanels for .itemsPanel() extensions and proposes a solution (see EmptyWrapPanelBuilders).

I've included it on the Color Picker page of the Gallery, although it strictly isn't a color picker widget in the same sense.
If you find it a useful example, you may alternatively or additionally include it as an example for several other widgets it showcases:

  • horizontal ListBox
  • horizontal ItemsControl
  • lazy-loaded Expander
  • WrapPanel
  • ThemeAware

Copy link
Member

@edgarfgp edgarfgp left a comment

Choose a reason for hiding this comment

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

Thanks for creating this nice sample. Just added couple suggestions.

@edgarfgp edgarfgp merged commit 229f5a2 into fabulous-dev:main Dec 15, 2024
1 check passed
@h0lg h0lg deleted the named-colors branch December 16, 2024 18:01
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