Dan Walmsley
839de5966b
remove all traces of old api diff.
3 years ago
Max Katz
13c6fbe1db
Revert "Break the API"
This reverts commit f043f6b1617c85706c7c33741024a09b5b8c7d89.
3 years ago
Max Katz
6eaf0f9e4f
Break the API
3 years ago
robloo
7c4fdd8d12
Always coerce empty color in ColorSpectrum
3 years ago
robloo
e1d0ba108e
Fix FlatColorPalette default color values
3 years ago
Max Katz
cc91a97433
Hide more XAML files that should be internal
3 years ago
Steven Kirk
61be135c8c
Don't expose protected fields.
3 years ago
robloo
a4661bbee1
Improve IsPerceptive comments
3 years ago
robloo
27dff43e53
Revert "Switch ColorPreviewer's AccentColorConverter to use the FluentTheme's HSL algorithm"
This reverts commit a91571aa49 .
3 years ago
robloo
a91571aa49
Switch ColorPreviewer's AccentColorConverter to use the FluentTheme's HSL algorithm
3 years ago
robloo
8fed1f30f0
Always enable ColorSlider.IsPerceptive
This works-around #11271 and stabilizes the API. It can be revisited later.
3 years ago
robloo
6ddef20ef7
Improve comments
3 years ago
robloo
31a1e514fa
Improve ColorPreviewer margins with drop shadow
This sets ClipToBounds to false for the control which allows the drop shadow to fully draw above/below the control itself. Doing this removes the need to adjust margins in almost all places. This is a big simplification to margin calculation and removes strange negative values.
3 years ago
robloo
0b952ea5e0
Replace ColorSlider.IsSaturationValueMaxForced with more powerful/general-purpose IsPerceptive
3 years ago
robloo
0c223cbcee
Rename ColorSlider.IsAlphaMaxForced to IsAlphaVisible
3 years ago
robloo
2f2f290e7f
Always force max saturation and value in the third component slider
3 years ago
robloo
4fd4970ce7
Fix Hue in new ColorSpectrum coercion logic
3 years ago
robloo
f0e93683f0
Add special coercion logic to initial ColorSpectrum selection
This specially handles #00000000 to be much more intuitive for end-users.
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
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