code_style: run dotnet format

This commit is contained in:
leo 2024-06-14 09:46:30 +08:00
parent 1dffb2ebf5
commit 9d3f186b44
No known key found for this signature in database
GPG key ID: B528468E49CD0E58
10 changed files with 17 additions and 16 deletions

View file

@ -14,7 +14,7 @@ namespace SourceGit.Views
get => GetValue(CanNavigateProperty);
set => SetValue(CanNavigateProperty, value);
}
public static readonly StyledProperty<string> MessageProperty =
AvaloniaProperty.Register<CommitBaseInfo, string>(nameof(Message), string.Empty);

View file

@ -184,12 +184,12 @@ namespace SourceGit.Views
var visual = (Visual)e.Source;
BeginMoveDrag(new PointerPressedEventArgs(
e.Source,
e.Source,
e.Pointer,
visual,
e.GetPosition(visual),
e.Timestamp,
new PointerPointProperties(RawInputModifiers.None, PointerUpdateKind.LeftButtonPressed),
visual,
e.GetPosition(visual),
e.Timestamp,
new PointerPointProperties(RawInputModifiers.None, PointerUpdateKind.LeftButtonPressed),
e.KeyModifiers));
}

View file

@ -116,7 +116,7 @@ namespace SourceGit.Views
{
SelectedObject = null;
detail.ViewRevisionFile(null);
}
}
}
};

View file

@ -107,7 +107,7 @@ namespace SourceGit.Views
protected override Type StyleKeyOverride => typeof(TextEditor);
public IThemedTextDiffPresenter(TextArea area, TextDocument doc): base(area, doc)
public IThemedTextDiffPresenter(TextArea area, TextDocument doc) : base(area, doc)
{
IsReadOnly = true;
ShowLineNumbers = false;
@ -156,7 +156,7 @@ namespace SourceGit.Views
TextArea.TextView.LineTransformers.Remove(_lineStyleTransformer);
_textMate = Models.TextMateHelper.CreateForEditor(this);
TextArea.TextView.LineTransformers.Add(_lineStyleTransformer);
Models.TextMateHelper.SetGrammarByFileName(_textMate, FileName);
Models.TextMateHelper.SetGrammarByFileName(_textMate, FileName);
}
}
else