robloo
6ddef20ef7
Improve comments
3 years ago
robloo
a401819251
Remove alpha in Hex color strings when IsAlphaEnabled or IsAlphaVisible is false
3 years ago
robloo
bcf1431bf9
Move AlphaComponentPosition into a better directory
3 years ago
robloo
d955a777e5
Switch HexInputAlphaPositionProperty default to Leading to match XAML
The control themes are now responsible to set the property to match slider position and CSS standards. Doing this has better compatibility with XAML by default.
3 years ago
robloo
23332cd048
Support configurable AlphaComponentPosition in ColorView
The default now matches CSS and differs from XAML/WinUI. The CSS trailing alpha component is in wider use for end-users now and it also matches the default slider ordering in the UI.
3 years ago
robloo
bb8e3ae9ab
Switch ColorSpectrum.ThirdComponent to a read-only DirectProperty
3 years ago
robloo
7311ed01b6
Use SetCurrentValue() in ColorPicker controls
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
robloo
7b69d2ae57
Revert "Add and implement IsHostedInColorPicker property to ColorView"
This reverts commit 2575a10fb0 .
4 years ago
robloo
2575a10fb0
Add and implement IsHostedInColorPicker property to ColorView
This works-around some lifecycle issues by allowing the ColorView to specially handle how it handles property changes based on whether or not it is within a ColorPicker.
4 years ago
robloo
0bf3a6d944
Rename `ShowAccentColors` to `IsAccentColorsVisible` and disable drop shadow when false
4 years ago
robloo
38bdb8a7b3
Remove unused code
4 years ago
robloo
971dc32b3f
Add code to hide the tab strip when only one tab is visible
4 years ago
robloo
9e1a6253b6
Only disable alpha editing controls when IsAlphaEnabled is false
Rely on IsAlphaVisible for visibility
4 years ago
robloo
58f9b443d9
Implement IsAlphaEnabled using coercion
4 years ago
robloo
4de48a220c
Add IsColorModelVisible and IsComponentSliderVisible properties
4 years ago
robloo
bcb8588bdc
Allow setting the PaletteColors collection as an IEnumerable
In WPF it was standard to have read-only collections. However, it's necessary to bind this collection between the ColorPicker and ColorView so it cannot be read-only. ItemsControl in Avalonia implements the Items property a similar way.
4 years ago
robloo
03b080ae04
Remove 'Custom' term from Palette properties
4 years ago
robloo
118f583102
Remove 'Tab' terminology from SelectedIndex property
4 years ago
robloo
b58b726f89
Set the CustomPalette property in XAML
4 years ago
robloo
b8be7ba4cb
Implement SelectedTabIndex in ColorView
4 years ago
robloo
223ef7e4a0
Small improvements
4 years ago
robloo
55de1523c4
Support ignoring property changes in derived Color controls
4 years ago
robloo
adfac7b69d
Implement tab selection validation and automatic width
4 years ago
robloo
bd8f7446d5
Implement remaining ColorView properties
4 years ago
robloo
a4ba57c3b8
Implement IsHexInputVisible
4 years ago
robloo
81670fcd3c
Implement IsAlphaVisible and IsComponentTextInputVisible
4 years ago
robloo
12a8ecb923
Implement the hex input TextBox in ColorView
4 years ago
robloo
13b82a0d1d
Implement ColorModel switching in ColorView
4 years ago
robloo
2835767b42
Add incomplete ColorView control template
4 years ago
robloo
d3bad7bd1d
Add ColorViewTab enum
4 years ago
robloo
fa5a47b442
Add initial ColorView.Properties
4 years ago