Julien Lebosquain
b612be79db
Add FocusChangedEventArgs for GotFocus/LotFocus ( #20859 )
* Add FocusChangedEventArgs for GotFocus/LotFocus
* Update API suppressions
2 weeks ago
Julien Lebosquain
3394815603
Simplify text formatting constructors ( #20527 )
* Remove the flowDirection parameter from TextCollapsingProperties.CreateCollapsedRuns
* Simplify text formatting constructors
* Update API suppressions
2 months ago
Tom Edwards
e5babc8a6f
Added TextScaling static class with configuration properties
Added ITextScaler to support custom text scaling
Calculate a font scale factor and use this to adjust height and spacing values
Fixed TextBox not updating when LineHeight changes and MaxLines or MinLines are active
3 months ago
Tom Edwards
762dff0168
Also scale LineHeight, LineSpacing, and LetterSpacing
Fixed TextBox.MaxLines and TextBox.MinLines calculations when text scaling is active
Fixed TextBox not updating when LineSpacing changes
Removed EffectiveFontSize, since it's no longer the only property which scales
3 months ago
Tom Edwards
bf2a577f83
Added support for platform text scaling, disabled by default
Only TextBlock, Inline, and TextPresenter scale text by themselves
No change to low-level text rendering or FontSize values
Implemented for iOS and Windows
Windows scaling is currently uniform regardless of base font size, which is incorrect
3 months ago
Artemis Li
60ee26ae21
Preserve run formatting when applying SelectionForegroundBrush in SelectableTextBlock ( #20110 )
* Add failing test for preserving run formatting during selection
* Fix selection styling to preserve original text formatting in SelectableTextBlock
* fix: apply old logic when `_textRuns` is null
4 months ago
leo
eafb41d628
Fix SelectableTextBlock selection ( #18049 )
1 year ago
Julien Lebosquain
f4633e210c
Fix TextBlock re-measure in infinite container ( #17638 )
* Add failing test for TextBlock
* Fix TextBlock re-measure in infinite container
* Fix outdated test
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
1 year ago
xLEGiON
d5f0188ccf
Fix SelectableTextBlock Selection ( #15536 )
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2 years ago
Herman K
88967de49e
Ability to configure font features ( #14157 )
* Ability to configure font features
* Minor adjustments
---------
Co-authored-by: Herman Kirshin <herman.kirshin@jetbrains.com>
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2 years ago
Benedikt Stebner
1689bfe5b1
Add SelectionForegroundBrush to SelectableTextBlock ( #13618 )
2 years ago
Vladislav Stepanov
2c72343d49
Fix a typo in `SelectableTextBlock.ClearSelection()` ( #13733 )
2 years ago
Max Katz
d267d06a08
Move PlatformHotkeyConfiguration to IPlatformSettings
3 years ago
Max Katz
596f876868
Use PlatformHotkeyConfiguration.Instance instead of locator
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
Max Katz
9a3ed2e022
Use correct theme specific selection brush on SelectableTextBlock
3 years ago
Emmanuel Hansen
04c8b652c8
move clipboard to TopLevel
3 years ago
Benedikt Stebner
1964afb854
Fix possible NRE
3 years ago
Benedikt Stebner
45bf804cd4
Fix SelectableTextBlock selection
3 years ago
Tom Edwards
86324dca77
Convert Text properties to StyledProperty
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
7cc5e9bbb4
Fix a copy paste error so mouse movements are properly recognized if the width is smaller than the height.
3 years ago
rabbitism
aeb4313487
feat: add SelectAll hotkey support.
3 years ago
Sergey Mikolaitis
5d1e5d97c2
[Text] [Selection] fix double click selection on word end position
3 years ago
Benedikt Stebner
93b77b1b6a
Move inlines support to TextBlock and rename RichTextBlock to SelectableTextBlock
3 years ago
Benedikt Stebner
cf16418d21
Adjust visual logical tree reset
4 years ago
Benedikt Stebner
75b3abbdd8
Properly arrange Embedded controls during ArrangeOverride
4 years ago
Benedikt Stebner
48b608c829
Moves InlineUIContainer Child measure and arrange to the IInlineHost ( #8849 )
4 years ago
Takoooooo
00c08235cc
Remove obsolete members from Avalonia.Controls assembly.
4 years ago
Benedikt Stebner
d5084eaf75
Fix GetCharacterHitFromDistance
4 years ago
Benedikt Stebner
81b0dce302
Fix RichTextBlock Inlines update handling
4 years ago
Benedikt Stebner
0372dd914c
Show IBeam cursor for IsTextSelectionEnabled
4 years ago
Benedikt Stebner
c7182ae12a
Improve advanced word selection
4 years ago
Benedikt Stebner
6802722051
Add whole word shift selection
4 years ago
Benedikt Stebner
dcd3804420
Make sure we always process inlines as whitespace significant
4 years ago
Benedikt Stebner
3ad71d4bea
Use IAddChild for TextBlock and RichTextBlock
4 years ago
Benedikt Stebner
eb627f393c
More fixes
4 years ago
Benedikt Stebner
5dc768aa13
Add some xml comments
4 years ago
Benedikt Stebner
90e0dcc9e3
Add Copy geasture
4 years ago
Benedikt Stebner
a408ea10d7
Some Progress
4 years ago
Benedikt Stebner
0c8f54fe00
Introduce RichTextBlock
4 years ago