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
12fa653ca2
Use Transparent background in ColorPreviewer so DropShadow appears
This addresses #10539 . Drop shadow for now requires the Background to be set in order to work correctly.
3 years ago
robloo
818b45320f
Fix ColorHelper CI build error
3 years ago
robloo
0bdd79b964
Update ColorSlider ControlTheme
1. Support lightweight resources to change track and control size independently
2. Make the background spectrum follow the track size
3 years ago
robloo
927e5ff77d
Calculate the ColorSlider spectrum based on the track size
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
a92d7abcc7
Switch ColorHelper.ToDisplayName() to an HSV color space algorithm that uses all components
3 years ago
robloo
bb8e3ae9ab
Switch ColorSpectrum.ThirdComponent to a read-only DirectProperty
3 years ago
robloo
1013463262
Switch ColorHelper.ToDisplayName() to a hue-only algorithm
This is not working quite as accurately as expected so will likely be replaced by a hybrid technique next.
3 years ago
robloo
dc52c0b66c
Match color model control height with the hex TextBox
3 years ago
Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
3 years ago
robloo
76e0e54a00
Restore ColorPicker flyout top placement
Default behavior was changed after https://github.com/AvaloniaUI/Avalonia/pull/10492
3 years ago
robloo
7311ed01b6
Use SetCurrentValue() in ColorPicker controls
3 years ago
Julien Lebosquain
fec4df44b0
Nullability fixes for Avalonia.Controls.ColorPicker
3 years ago
robloo
a8aa64b4c0
Fix handling of full-length hex values with '#' symbol in ColorPicker
This allows pasting i.e. '#FFFFFFFF' in the hex input text box
3 years ago
Giuseppe Lippolis
8f745ba6fc
fix: Address Review
3 years ago
Giuseppe Lippolis
bd2e2d1e9b
feat: Address Rule CA2211
3 years ago
Max Katz
8a78f134c5
Remove JetBrains.Annotations from the repo
3 years ago
Max Katz
59d7874b1d
Replace System.Reactive with internal extensions
3 years ago
Steven Kirk
692c0c155d
Begin refactoring ItemsPresenter.
A lot still broken, in particular virtualization is completely removed.`ItemsPresenter` now no longer has an `Items` or `ItemTemplate` property; it detects when it's hosted in an `ItemsControl`. `IItemsPresenter` interface removed.
3 years ago
Max Katz
526d9d052b
Avalonia.Base and controls related project trimming attributes
3 years ago
Giuseppe Lippolis
2aa79269e8
fix: Address reviw
3 years ago
Max Katz
390221b3ce
Implement compile time MergedDictionaties
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Max Katz
fa0cea97fe
Enable compiled bindings by default and fix all the usages + adjust some namespaces
3 years ago
robloo
ea80be321f
Add all material color palette defined colors
3 years ago
robloo
ae570453c7
Allow derived controls to call ColorSpectrum.ThirdComponent.set()
3 years ago
robloo
ca85843f99
Rework ColorPicker control template duplicating from ColorView
3 years ago
robloo
3b21596a85
Hand-off control to the ColorView after template is applied in ColorPicker
This solution doesn't require the hacky IsHostedInColorPicker property
4 years ago
robloo
7b69d2ae57
Revert "Add and implement IsHostedInColorPicker property to ColorView"
This reverts commit 2575a10fb0 .
4 years ago
robloo
7f110f34b3
Remove more public properties from SixteenColorPalette
4 years ago
robloo
35245877b7
Improve FlatColorPalette (full chart) and add FlatHalfColorPalette
4 years ago
robloo
b1fed41143
Remove public color indexes from SixteenColorPalette
4 years ago
robloo
4b42a60bec
Improve MaterialColorPalette and add MaterialHalfColorPalette
4 years ago
robloo
e96772e707
Remove ThirdComponentConverter replacing it with ColorSpectrum.ThirdComponent property
4 years ago
robloo
2fdbbacc60
Make some todo-areas of the code more clear
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
Giuseppe Lippolis
4620e5cf99
feat(ColorPicker): Address rule CA1822
4 years ago
Giuseppe Lippolis
543acb1235
fix: Address CA1825 rule
4 years ago
robloo
bc927d0312
Remove ColorSlider background disposal on attach/detach from visual tree
4 years ago
robloo
667b02d2c0
Disable WriteableBitmap re-use in ColorSlider due to crashes
4 years ago
robloo
4f1d315b4b
Make all ColorSpectrum bitmaps globally accessible by the control for future disposal
4 years ago
robloo
98a58217ce
Fix ColorSlider update/refresh for all property changes
4 years ago
robloo
ca7543f1d6
Add new ArrayList to avoid an extra copy when creating spectrum bitmaps
4 years ago
robloo
4b43cb3662
Implement WriteableBitmap caching/reuse and disposal in ColorSlider
4 years ago
robloo
8b07091939
Fix formatting
4 years ago
robloo
55e27213f9
Comment additional ColorSpectrum methods
4 years ago
robloo
5c3a56a953
Fix the color spectrum selection ellipse position
Specifically, when updated and not part of the visual tree
4 years ago