Fabulous.Avalonia.ColorPicker
2.0.0-pre17
This is a prerelease version of Fabulous.Avalonia.ColorPicker.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Fabulous.Avalonia.ColorPicker --version 2.0.0-pre17
NuGet\Install-Package Fabulous.Avalonia.ColorPicker -Version 2.0.0-pre17
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="2.0.0-pre17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fabulous.Avalonia.ColorPicker --version 2.0.0-pre17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fabulous.Avalonia.ColorPicker, 2.0.0-pre17"
#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.
// Install Fabulous.Avalonia.ColorPicker as a Cake Addin #addin nuget:?package=Fabulous.Avalonia.ColorPicker&version=2.0.0-pre17&prerelease // Install Fabulous.Avalonia.ColorPicker as a Cake Tool #tool nuget:?package=Fabulous.Avalonia.ColorPicker&version=2.0.0-pre17&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 ColorPicker
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
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 | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Avalonia.Controls.ColorPicker (>= 11.0.5)
- Fabulous.Avalonia (>= 2.0.0-pre17)
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 |
---|---|---|
3.0.0-pre7 | 40 | 11/27/2024 |
3.0.0-pre6 | 97 | 5/20/2024 |
3.0.0-pre5 | 105 | 5/17/2024 |
3.0.0-pre4 | 97 | 4/19/2024 |
3.0.0-pre3 | 103 | 4/13/2024 |
3.0.0-pre2 | 94 | 3/31/2024 |
3.0.0-pre1 | 100 | 3/23/2024 |
2.4.0-pre1 | 109 | 2/9/2024 |
2.3.0 | 180 | 1/17/2024 |
2.2.0 | 128 | 1/9/2024 |
2.1.0 | 136 | 1/8/2024 |
2.0.0 | 146 | 1/1/2024 |
2.0.0-pre18 | 152 | 12/7/2023 |
2.0.0-pre17 | 129 | 11/12/2023 |
2.0.0-pre16 | 114 | 11/1/2023 |
### Added
- No changes