Fabulous.Avalonia.ColorPicker 10.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fabulous.Avalonia.ColorPicker --version 10.0.2
                    
NuGet\Install-Package Fabulous.Avalonia.ColorPicker -Version 10.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fabulous.Avalonia.ColorPicker" Version="10.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fabulous.Avalonia.ColorPicker" Version="10.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Fabulous.Avalonia.ColorPicker" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fabulous.Avalonia.ColorPicker --version 10.0.2
                    
#r "nuget: Fabulous.Avalonia.ColorPicker, 10.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fabulous.Avalonia.ColorPicker@10.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fabulous.Avalonia.ColorPicker&version=10.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Fabulous.Avalonia.ColorPicker&version=10.0.2
                    
Install as a Cake Tool

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.ColorPicker package to your project.
  • Open Fabulous.Avalonia at 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

Additionally, we have the Fabulous Discord server where you can ask any of your Fabulous related questions.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.4 81 10/12/2026
10.0.3 100 9/30/2026
10.0.2 91 9/27/2026
10.0.1 116 9/7/2026
10.0.0 128 8/24/2026
3.0.0-pre9 222 1/17/2025
3.0.0-pre8 193 12/27/2024
3.0.0-pre7 202 11/27/2024
3.0.0-pre6 241 5/20/2024
3.0.0-pre5 262 5/17/2024
3.0.0-pre4 215 4/19/2024
3.0.0-pre3 237 4/13/2024
3.0.0-pre2 199 3/31/2024
3.0.0-pre13 460 11/19/2025
3.0.0-pre12 176 5/24/2025
3.0.0-pre11 247 4/7/2025
3.0.0-pre10 178 2/28/2025
3.0.0-pre1 245 3/23/2024
2.4.0 309 4/7/2025
2.4.0-pre1 222 2/9/2024
Loading failed

### Added

- Document the historical `Cmd` module breaking changes between Fabulous 2.4.x and 10.0.1 (removed `Cmd.ofSub`/`Cmd.dispatch`, the `Cmd.OfAsync`/`Cmd.OfTask` relocations, and the two-continuation `either` signature) in `docs/guides/migration.md` (#1336, #1337, #1338, #1339).

### Changed

- Bump the `Microsoft.NET.Test.Sdk` version from `18.9.0` to `18.10.0` in `Directory.Packages.props` (Repo Assist).
- Bump `BenchmarkDotNet` from `0.14.0` to `0.15.8` and `Microsoft.NET.Test.Sdk` from `18.10.0` to `18.10.1` in `Directory.Packages.props` (Repo Assist).
- Revert the `FSharp.Core` package version floor bump from `10.1.401` back to `10.0.100` in `Directory.Packages.props`, after CI (#1351, #1354) confirmed it triggers a `NullReferenceException` in Apple's `ILStrip` post-processing tool when building the `net10.0-ios` sample target, keeping the `Microsoft.NET.Test.Sdk`/`BenchmarkDotNet` bumps intact (Repo Assist, #1355).
- Suppress the 60 `FS0044` deprecation warnings from MAUI's own `[Obsolete]` attributes on `SwitchCell`/`EntryCell`/`Page.IsBusy`/`SafeArea` by adding `#nowarn "44"` to `Views/Cells/_Cell.fs`, `EntryCell.fs`, `SwitchCell.fs`, `Views/Pages/_Page.fs`, `ContentPage.fs`, and `Views/Layouts/_Layout.fs`, ahead of the 10.0.2 release (Repo Assist, #1344).
- Replace the immutable `Set`-based subscription-diffing in `Sub.Internal.diff`/`Sub.Internal.NewSubs.calculate` with a mutable `HashSet`, avoiding repeated O(log n) tree-node allocations on every `Program` update cycle (Repo Assist, #1202).
- Optimize `StackArray3.combine` to avoid an intermediate array allocation when merging a `Few`-cased value with a `Many`-cased array, writing directly into the final result array instead of allocating via `toArray`/`Array.append` (Repo Assist, #1234).
- Bump the `Avalonia` package version from `12.1.1` to `12.1.2` in `Directory.Build.props` (Repo Assist, #1317).
- Bump the `fabulous-avalonia` template's default `Avalonia`/`Avalonia.Desktop`/`Avalonia.Android`/`Avalonia.iOS`/`Avalonia.Themes.Fluent` package versions from `11.3.0` to `12.1.1` in `templates/avalonia/**/.template.config/template.json` (@kant2002, #1321).
- Document that the `fabulous-avalonia` single-project template's `net10.0-android`/`net10.0-ios` target frameworks require the `android`/`ios` .NET workloads, and document the previously-unlisted desktop-only `fabulous-avalonia-desktop` template as a workload-free alternative, in the Avalonia tutorial, get-started guide, and templates README (Repo Assist, #1319, #1326).
- Add Windows-from-Visual-Studio debugging guidance (Solution Platform selector, MSIX-packaged vs. unpackaged apps) to the MAUI tutorial and get-started guide (#1306, #1307, #1308, #1309, #1310, #1334, #1335).
- Fix formatting and clarify instructions in the Avalonia get-started guide and tutorial (#1329, #1330, #1331).
- Replace the dead Discord "Contact us" link with a mailto link in the website header (#1313).

### Fixed

- 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).