mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
update<csproj>: use official AvaloniaEdit instead of OneWare.AvaloniaEdit
This commit is contained in:
parent
58eb002f4b
commit
ca19d65f0e
4 changed files with 10 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Primitives;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Media;
|
||||
using Avalonia.Styling;
|
||||
|
@ -517,7 +518,7 @@ namespace SourceGit.Views {
|
|||
}
|
||||
|
||||
private void OnTextViewScrollOffsetChanged(object sender, EventArgs e) {
|
||||
SyncScrollOffset = ScrollViewer.Offset;
|
||||
SyncScrollOffset = TextArea.TextView.ScrollOffset;
|
||||
}
|
||||
|
||||
private void OnTextViewContextRequested(object sender, ContextRequestedEventArgs e) {
|
||||
|
@ -566,8 +567,9 @@ namespace SourceGit.Views {
|
|||
Text = string.Empty;
|
||||
}
|
||||
} else if (change.Property == SyncScrollOffsetProperty) {
|
||||
if (ScrollViewer.Offset != SyncScrollOffset) {
|
||||
ScrollViewer.Offset = SyncScrollOffset;
|
||||
if (TextArea.TextView.ScrollOffset != SyncScrollOffset) {
|
||||
IScrollable scrollable = TextArea.TextView;
|
||||
scrollable.Offset = SyncScrollOffset;
|
||||
}
|
||||
} else if (change.Property.Name == "ActualThemeVariant" && change.NewValue != null && _textMate != null) {
|
||||
if (App.Current?.ActualThemeVariant == ThemeVariant.Dark) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue