refactor(ui): reuse task-row style for worktree rows
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<converters:WorktreeStateColorConverter x:Key="WorktreeStateColor"/>
|
<converters:WorktreeStateColorConverter x:Key="WorktreeStateColor"/>
|
||||||
<DataTemplate x:Key="WorktreeRowTemplate" x:DataType="vm:WorktreeOverviewRowViewModel">
|
<DataTemplate x:Key="WorktreeRowTemplate" x:DataType="vm:WorktreeOverviewRowViewModel">
|
||||||
<Border Classes="wt-row"
|
<Border Classes="task-row"
|
||||||
Classes.selected="{Binding IsSelected}"
|
Classes.selected="{Binding IsSelected}"
|
||||||
Tapped="OnRowTapped">
|
Tapped="OnRowTapped">
|
||||||
<Border.ContextMenu>
|
<Border.ContextMenu>
|
||||||
@@ -82,29 +82,6 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</Window.Resources>
|
</Window.Resources>
|
||||||
|
|
||||||
<Window.Styles>
|
|
||||||
<Style Selector="Border.wt-row">
|
|
||||||
<Setter Property="Padding" Value="12,10"/>
|
|
||||||
<Setter Property="CornerRadius" Value="8"/>
|
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource LineBrush}"/>
|
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
|
||||||
<Setter Property="Margin" Value="0,0,0,6"/>
|
|
||||||
<Setter Property="Cursor" Value="Hand"/>
|
|
||||||
<Setter Property="Transitions">
|
|
||||||
<Transitions>
|
|
||||||
<BrushTransition Property="BorderBrush" Duration="0:0:0.10"/>
|
|
||||||
</Transitions>
|
|
||||||
</Setter>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="Border.wt-row:pointerover">
|
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource LineBrightBrush}"/>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="Border.wt-row.selected">
|
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource LineBrightBrush}"/>
|
|
||||||
</Style>
|
|
||||||
</Window.Styles>
|
|
||||||
|
|
||||||
<ctl:ModalShell Title="{Binding Title}" CloseCommand="{Binding CloseCommand}">
|
<ctl:ModalShell Title="{Binding Title}" CloseCommand="{Binding CloseCommand}">
|
||||||
|
|
||||||
<!-- Body: toolbar + content -->
|
<!-- Body: toolbar + content -->
|
||||||
|
|||||||
Reference in New Issue
Block a user