Nikita Tsukanov
30b451da52
Fix Border clip regression ( #20648 )
1 month ago
Javier Suárez
424863d5ff
Add PlaceholderForeground property to TextBox, AutoCompleteBox, CalendarDatePicker, NumericUpDown ( #20303 )
* Added WatermarkForeground property
* Added samples
* Added unit tests
* Added render tests
* Fix merge issues
* Updated render tests
* Standardize watermark foreground naming
* Pending changes
* More changes
* Use UseFloatingPlaceholder
* Fix tests
2 months ago
Benedikt Stebner
1bce702bd4
Introduce TextOptions ( #20107 )
* Introduce TextOptions API
* Store BaselinePixelAlignment as byte. Move to a dedicated file.
* Update API suppressions
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
2 months ago
snowflysky
c7bc7e92a5
Enable antialiasing based on EdgeMode in DrawBitmap ( #20116 )
* Enable antialiasing based on EdgeMode in DrawBitmap
* Update expected image for ImageBrush Tile UniformToFill test
* Add tests for rotated image with EdgeMode options
* Add expected images for Direct2D1 image rotation tests
* Revert "Add expected images for Direct2D1 image rotation tests"
This reverts commit 63dd6717b0 .
* Remove Direct2D1 in ImageTests
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
4 months ago
Julien Lebosquain
246cbfc566
Remove Direct2D1 ( #20132 )
4 months ago
Alexandre Mutel
46d4735868
Fix issue with OverhangLeading ( #18438 )
* Fix issue with MinTextWidth (Fixes #18372 )
* Make sure that MeasureOverride for TextPresenter and TextBlock are using same textWidth
* Revert #16601 that is introducing an invalid calculation for the OverhangLeading
Add tests for OverhangLeading and OverhangTrailing
* Revert MinTextWidth
* Fix tests to not rely on fixed values
* Fix remaining issues
* Fix comment in Direct2D1 GlyphRunImpl.cs
* Fix Direct2D1 rendering
* Fix gold images
* Restore TextLineImpl
* Update gold image
* Restore Math.Max on OverhangLeading and Trailing
* Adopt similar behavior to WPF: don't use OverhangLeading/Trailing for measuring and remove clip by default.
But it requires further support with NeedsClipBounds
* Remove MinTextWidth
Keep ClipToBounds=true default for TextBlock
* Revert change
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
12 months ago
Leo Bottaro
9441362dcc
Add missing Blend Modes and expose BlendMode on Image Control ( #17903 )
* Add missing Bitmap Blend Modes supported by Skia
* Expose Blend Mode on Image Control
* Fix image render options "push" not being disposed
Fix image blendMode change not triggering a re-render
* Add Image Blend Tests
* Remove Modulate Blend mode
* Add Composition Blend Modes Tests
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
1 year ago
Benedikt Stebner
d411bd2156
Fix TextBlock TextAlignment issues when a HorizontalAlignment is defined ( #17402 )
* Always measure TextBlock with infinite width
* Make sure the constraint is always fulfilled
* Add some tests
* Adjust tests because we no longer retain the TextLayout in the arrange pass
1 year ago
Benedikt Stebner
e55dfcd1a2
Fixes ShapedTextRun background rendering ( #16594 )
* Add failing test
* Fix ShapedTextRun background rendering
2 years ago
Benedikt Stebner
101cdc5257
Fix PushOpacity when ClipToBounds is false
3 years ago
Benedikt Stebner
f153c626f8
Fix TextLineImpl.GetCharacterHitFromDistance for lines that include a TextEndOfLine run
Fix overhang handling to prevent clipped text for slanted glyphs
Fix TextBox selection issues
3 years ago
Giuseppe Lippolis
3f306b48ab
fix(DrawingContext): CS0618 PushPreTransform(Matrix)' is obsolete: 'Use PushTransform'
```bash
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\ConicGradientBrushTests.cs 203 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\LinearGradientBrushTests.cs 98 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\RadialGradientBrushTests.cs 188 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\TextFormatting\TextLayoutTests.cs 315 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Skia.UnitTests .\tests\Avalonia.Skia.UnitTests\Media\TextFormatting\TextFormatterTests.cs 795 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 136 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 140 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 144 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 146 Active
Warning CS0618 'DrawingContext.PushPostTransform(Matrix)' is obsolete: 'Use PushTransform' RenderDemo .\samples\RenderDemo\Pages\RenderTargetBitmapPage.cs 32 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Base (net6.0), Avalonia.Base (netstandard2.0) .\src\Avalonia.Base\Media\DrawingGroup.cs 76 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Controls\CustomRenderTests.cs 91 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Controls\CustomRenderTests.cs 115 Active
```
3 years ago
Benedikt Stebner
f5caa61051
[SKIA] UseOpacitySaveLayer feature switch ( #9964 )
* [SKIA] Introduce UseOpacitySaveLayer feature switch
* Only maintain _currentOpacity when OpacitySaveLayer is disabled
3 years ago
Nikita Tsukanov
95b6343f8f
Respect AdornerLayer.IsClipEnabled
3 years ago
Benedikt Stebner
b0a2ae99e4
Fix default GlyphRun.BaselineOrigin
Add a unit test
3 years ago
Nikita Tsukanov
6bdf0eacc7
Removed legacy renderers
3 years ago
Simon Cropp
dba476c11c
fix more typos
3 years ago
Nikita Tsukanov
5a3d9f1574
Use parent clip rect of the adorned visual
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Steven Kirk
ce60f607cf
Added failing tests for #6359 .
4 years ago
Andrey Kunchev
21fadbedd6
add tests for text issue:4866
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Steven Kirk
7cdaeac441
Make Rect.Deflate consistent with Rect.Inflate.
`Rect.Deflate` was halving the thickness passed into it whereas `Rect.Inflate` wasn't. Make both methods consistent and _not_ halve the thickness.
7 years ago
Nikita Tsukanov
6d5d26b36c
Exclude Wrapping_NoWrap from Linux test run
7 years ago
Nikita Tsukanov
ea7dc760cc
Updated SkiaSharp to 1.68.0
7 years ago
Jumar Macato
cfa39c9d0d
fix wrongly placed fontfamily parameter
8 years ago
Jumar Macato
0094c4cf87
Fix unit test by specifying the font in the test image.
8 years ago
Steven Kirk
d531b36b96
Make brushes raise a Changed event.
When their visual representation changes.
8 years ago
Benedikt Schroeder
d5ace4db8d
tests fixed
8 years ago
Steven Kirk
253ff56895
Added a couple of Border CornerRadius render tests.
8 years ago
Benedikt Schroeder
27a666467c
Initial
8 years ago
Steven Kirk
589b76e9cd
Moved render tests for each platform to their own directory.
The test .cs files stay in the `Avalonia.RenderTests` directory but the D2D and Skia render test .csprojs are moved to their own directory: include the test files by using a glob in the .csproj.
This avoids the hack we were having to do to get `BaseIntermediateOutputPath` to work - we no longer have this problem as now each .csproj has its own directory, it can use the default directory for intermediate files.
8 years ago
Nikita Tsukanov
3d3d4528f6
Burn, baby, BURN!
9 years ago
Steven Kirk
27ec199a3d
Added failing custom render tests.
Deferred rendering does not yet support geometry clipping or opacity masks from `Visual.Render`.
9 years ago
Steven Kirk
d6342e906a
Adjusted expected test output.
The output images were off-center.
9 years ago
Steven Kirk
7e1efb33e2
Added failing render test.
Deferred rendering does not yet support clipping in `Visual.Render`.
9 years ago
Steven Kirk
1c42bbf644
Added failing custom renderer test.
Deferred rendering does not yet support opacity from `Visual.Render`.
9 years ago
Nikita Tsukanov
46de034f98
Don't skip tests that are passing now
9 years ago
Steven Kirk
b3f9a8464e
Run deferred render tests on a background thread.
Run deferred render tests on a background thread to expose any threading
errors in the deferred rendering path. And threading errors found. Also
had to decrease the timeout for D2D render tests as
`renderTarget.EndDraw` is hanging when an exception is thrown between
`renderTarget.BeginDraw` and `EndDraw`.
9 years ago
Wiesław Šoltés
9cdcf6cb02
Revert "Updated projects and packages"
This reverts commit 7cca79b435 .
10 years ago
Wiesław Šoltés
7cca79b435
Updated projects and packages
10 years ago
Steven Kirk
ec35cdde79
Fixed TextBlock text wrapping.
And added render test (so far only to D2D backend)
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago