mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
ux: use CommitSubjectPresenter instead of simple TextBlock to display commit's subject in interactive rebase window
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -88,6 +88,11 @@ namespace SourceGit.ViewModels
|
||||
private set;
|
||||
}
|
||||
|
||||
public AvaloniaList<Models.IssueTrackerRule> IssueTrackerRules
|
||||
{
|
||||
get => _repo.Settings.IssueTrackerRules;
|
||||
}
|
||||
|
||||
public bool IsLoading
|
||||
{
|
||||
get => _isLoading;
|
||||
|
||||
@@ -194,7 +194,17 @@
|
||||
Click="OnOpenCommitMessageEditor">
|
||||
<Path Width="14" Height="14" Margin="0,4,0,0" Data="{StaticResource Icons.Edit}"/>
|
||||
</Button>
|
||||
<TextBlock Grid.Column="1" Classes="primary" Margin="0,0,4,0" Text="{Binding Subject}"/>
|
||||
|
||||
<v:CommitSubjectPresenter Grid.Column="1"
|
||||
Margin="0,0,4,0"
|
||||
FontFamily="{DynamicResource Fonts.Primary}"
|
||||
CodeFontFamily="{DynamicResource Fonts.Monospace}"
|
||||
InlineCodeBackground="{DynamicResource Brush.InlineCode}"
|
||||
Foreground="{DynamicResource Brush.FG1}"
|
||||
LinkForeground="{DynamicResource Brush.Link}"
|
||||
Subject="{Binding Subject}"
|
||||
IssueTrackerRules="{Binding $parent[v:InteractiveRebase].((vm:InteractiveRebase)DataContext).IssueTrackerRules}"
|
||||
FontWeight="Normal"/>
|
||||
</Grid>
|
||||
|
||||
<!-- Author Avatar -->
|
||||
|
||||
Reference in New Issue
Block a user