Skip to content

Commit d4edb41

Browse files
committed
ux: use CommitSubjectPresenter instead of simple TextBlock to display commit's subject in interactive rebase window
Signed-off-by: leo <[email protected]>
1 parent 6ea00a3 commit d4edb41

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/ViewModels/InteractiveRebase.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public Models.Commit On
8888
private set;
8989
}
9090

91+
public AvaloniaList<Models.IssueTrackerRule> IssueTrackerRules
92+
{
93+
get => _repo.Settings.IssueTrackerRules;
94+
}
95+
9196
public bool IsLoading
9297
{
9398
get => _isLoading;

src/Views/InteractiveRebase.axaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,17 @@
194194
Click="OnOpenCommitMessageEditor">
195195
<Path Width="14" Height="14" Margin="0,4,0,0" Data="{StaticResource Icons.Edit}"/>
196196
</Button>
197-
<TextBlock Grid.Column="1" Classes="primary" Margin="0,0,4,0" Text="{Binding Subject}"/>
197+
198+
<v:CommitSubjectPresenter Grid.Column="1"
199+
Margin="0,0,4,0"
200+
FontFamily="{DynamicResource Fonts.Primary}"
201+
CodeFontFamily="{DynamicResource Fonts.Monospace}"
202+
InlineCodeBackground="{DynamicResource Brush.InlineCode}"
203+
Foreground="{DynamicResource Brush.FG1}"
204+
LinkForeground="{DynamicResource Brush.Link}"
205+
Subject="{Binding Subject}"
206+
IssueTrackerRules="{Binding $parent[v:InteractiveRebase].((vm:InteractiveRebase)DataContext).IssueTrackerRules}"
207+
FontWeight="Normal"/>
198208
</Grid>
199209

200210
<!-- Author Avatar -->

0 commit comments

Comments
 (0)