diff --git a/src/LogAlligator.App/Controls/FileView.axaml b/src/LogAlligator.App/Controls/FileView.axaml index de8b999..62bcd24 100644 --- a/src/LogAlligator.App/Controls/FileView.axaml +++ b/src/LogAlligator.App/Controls/FileView.axaml @@ -38,7 +38,7 @@ - + diff --git a/src/LogAlligator.App/Controls/FileView.axaml.cs b/src/LogAlligator.App/Controls/FileView.axaml.cs index 339eb83..cee2c03 100644 --- a/src/LogAlligator.App/Controls/FileView.axaml.cs +++ b/src/LogAlligator.App/Controls/FileView.axaml.cs @@ -48,7 +48,7 @@ public FileView() BookmarksView.JumpToBookmark += OnJumpToBookmark; } - public async void OnAddBookmark(object? sender, EndlessTextView.BookmarkEventArgs bookmarkEvent) + public async void OnAddBookmark(object? sender, TextAreaView.BookmarkEventArgs bookmarkEvent) { var bookmarkDialog = new BookmarkDialog(); try diff --git a/src/LogAlligator.App/Controls/LogView.axaml b/src/LogAlligator.App/Controls/LogView.axaml index ba119ac..7b1ccdd 100644 --- a/src/LogAlligator.App/Controls/LogView.axaml +++ b/src/LogAlligator.App/Controls/LogView.axaml @@ -54,7 +54,7 @@ - + diff --git a/src/LogAlligator.App/Controls/TextView/LineNumbers.cs b/src/LogAlligator.App/Controls/TextArea/LineNumbers.cs similarity index 100% rename from src/LogAlligator.App/Controls/TextView/LineNumbers.cs rename to src/LogAlligator.App/Controls/TextArea/LineNumbers.cs diff --git a/src/LogAlligator.App/Controls/TextView/Style.cs b/src/LogAlligator.App/Controls/TextArea/Style.cs similarity index 100% rename from src/LogAlligator.App/Controls/TextView/Style.cs rename to src/LogAlligator.App/Controls/TextArea/Style.cs diff --git a/src/LogAlligator.App/Controls/TextView/TextArea.cs b/src/LogAlligator.App/Controls/TextArea/TextAreaControl.cs similarity index 90% rename from src/LogAlligator.App/Controls/TextView/TextArea.cs rename to src/LogAlligator.App/Controls/TextArea/TextAreaControl.cs index 7ddfdbb..b56a2d3 100644 --- a/src/LogAlligator.App/Controls/TextView/TextArea.cs +++ b/src/LogAlligator.App/Controls/TextArea/TextAreaControl.cs @@ -7,13 +7,13 @@ namespace LogAlligator.App.Controls.TextView; -internal class TextArea : Control +internal class TextAreaControl : Control { private TextAreaLine[] _lines = []; private double _lineHeight; public static readonly StyledProperty BackgroundProperty = - AvaloniaProperty.Register(nameof(Background), new SolidColorBrush(Colors.Transparent)); + AvaloniaProperty.Register(nameof(Background), new SolidColorBrush(Colors.Transparent)); public IBrush Background { @@ -22,7 +22,7 @@ public IBrush Background } public static readonly StyledProperty ForegroundProperty = - AvaloniaProperty.Register(nameof(Foreground), new SolidColorBrush(Colors.Black)); + AvaloniaProperty.Register(nameof(Foreground), new SolidColorBrush(Colors.Black)); public IBrush Foreground { @@ -34,7 +34,7 @@ public IBrush Foreground public Color BackgroundColor => ((SolidColorBrush)Background).Color; public static readonly StyledProperty FontSizeProperty = - AvaloniaProperty.Register(nameof(FontSize), 12); + AvaloniaProperty.Register(nameof(FontSize), 12); public double FontSize { @@ -43,7 +43,7 @@ public double FontSize } public static readonly StyledProperty PaddingProperty = - Decorator.PaddingProperty.AddOwner