Fabulous.Avalonia.ColorPicker
10.0.3
dotnet add package Fabulous.Avalonia.ColorPicker --version 10.0.3
NuGet\Install-Package Fabulous.Avalonia.ColorPicker -Version 10.0.3
<PackageReference Include="Fabulous.Avalonia.ColorPicker" Version="10.0.3" />
<PackageVersion Include="Fabulous.Avalonia.ColorPicker" Version="10.0.3" />
<PackageReference Include="Fabulous.Avalonia.ColorPicker" />
paket add Fabulous.Avalonia.ColorPicker --version 10.0.3
#r "nuget: Fabulous.Avalonia.ColorPicker, 10.0.3"
#:package Fabulous.Avalonia.ColorPicker@10.0.3
#addin nuget:?package=Fabulous.Avalonia.ColorPicker&version=10.0.3
#tool nuget:?package=Fabulous.Avalonia.ColorPicker&version=10.0.3
ColorPicker for Fabulous.Avalonia
The ColorPicker control is a cross-platform view for selecting, previewing, and editing colors in a Fabulous.Avalonia app. It is based on the Avalonia . See the [Avalonia documentation]
How to use
- Add the
Fabulous.Avalonia.ColorPickerpackage to your project. - Open
Fabulous.Avaloniaat the top of the file where you declare your Fabulous program (eg. Program.stateful).
open Fabulous.Aavalonia
open type Fabulous.Avalonia.View
Using the ColorPicker Widget
Now you can use the ColorView, ColorPicker, ColorSpectrum, ColorSlider and ColorPreviewer widgets in your Fabulous app as follows:
ColorView(...)
.colorSpectrumShape(ColorSpectrumShape.Ring)
ColorPicker(...)
.hsvColor(HsvColor.Parse("hsv(120, 1, 1)"))
.palette(FlatHalfColorPalette())
ColorSpectrum(...)
.cornerRadius(10.)
.height(256.)
.width(256.)
ColorSlider(...)
.colorComponent(ColorComponent.Component1)
.colorModel(ColorModel.Hsva)
.hsvColor(model.ColorSpectrum.ToHsv())
ColorPreviewer(...)
.isAccentColorsVisible(false)
.hsvColor(model.ColorSpectrum.ToHsv())
A full, working example is included in the ColorPicker sample
Other useful links:
Additionally, we have the Fabulous Discord server where you can ask any of your Fabulous related questions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Avalonia.Controls.ColorPicker (>= 12.1.2)
- Fabulous.Avalonia (>= 10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.3 | 82 | 9/30/2026 |
| 10.0.2 | 82 | 9/27/2026 |
| 10.0.1 | 109 | 9/7/2026 |
| 10.0.0 | 123 | 8/24/2026 |
| 3.0.0-pre9 | 219 | 1/17/2025 |
| 3.0.0-pre8 | 189 | 12/27/2024 |
| 3.0.0-pre7 | 198 | 11/27/2024 |
| 3.0.0-pre6 | 236 | 5/20/2024 |
| 3.0.0-pre5 | 256 | 5/17/2024 |
| 3.0.0-pre4 | 209 | 4/19/2024 |
| 3.0.0-pre3 | 232 | 4/13/2024 |
| 3.0.0-pre2 | 194 | 3/31/2024 |
| 3.0.0-pre13 | 456 | 11/19/2025 |
| 3.0.0-pre12 | 174 | 5/24/2025 |
| 3.0.0-pre11 | 242 | 4/7/2025 |
| 3.0.0-pre10 | 176 | 2/28/2025 |
| 3.0.0-pre1 | 240 | 3/23/2024 |
| 2.4.0 | 304 | 4/7/2025 |
| 2.4.0-pre1 | 218 | 2/9/2024 |
| 2.3.0 | 316 | 1/17/2024 |
### Fixed
- Fix the Avalonia templates and samples failing to build for Android: raise the Android `SupportedOSPlatformVersion` from 21 to 23.0 (required by `androidx.lifecycle.runtime`) and align the templates' Avalonia package versions to 12.1.2 (Repo Assist, #1363).
- Add unit tests for `StackArray3`'s `add`, `get`, `find`, and `combine` operations, covering the `Few`/`Many` representation transitions and error paths that previously had no test coverage (Repo Assist).
- Route exceptions thrown by the leading-edge `emit` call in `DispatchThrottle.Dispatch` to `onError`, matching the error handling already used by the timer callback and `FlushAsync`, so a throwing dispatch handler no longer crashes the caller's dispatch thread (Repo Assist).
### Changed
- Remove the redundant `open Fabulous` self-import in `IViewNode.fs`, `WidgetDefinitions.fs`, `WidgetDiff.fs`, and `Reconciler.fs` (a no-op since each file is already declared in the `Fabulous` namespace) (Repo Assist).