mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ux: DataGrid header style in histories page
This commit is contained in:
parent
a3a3a0e4e9
commit
c8b688c52d
1 changed files with 5 additions and 6 deletions
|
@ -33,17 +33,16 @@
|
||||||
<DataGrid.Styles>
|
<DataGrid.Styles>
|
||||||
<Style Selector="DataGridColumnHeader">
|
<Style Selector="DataGridColumnHeader">
|
||||||
<Setter Property="MinHeight" Value="24"/>
|
<Setter Property="MinHeight" Value="24"/>
|
||||||
|
<Setter Property="Margin" Value="0"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Border Background="{DynamicResource Brush.Window}"
|
<Border Background="{DynamicResource Brush.Window}"
|
||||||
BorderBrush="{DynamicResource Brush.Border0}"
|
BorderBrush="{DynamicResource Brush.Border0}"
|
||||||
BorderThickness="0,0,1,1">
|
BorderThickness="0,0,1,1">
|
||||||
<ContentPresenter x:Name="PART_ContentPresenter"
|
<ContentPresenter x:Name="PART_ContentPresenter"
|
||||||
Grid.Column="0"
|
Content="{TemplateBinding Content}"
|
||||||
Margin="4,0"
|
HorizontalAlignment="Center"/>
|
||||||
Content="{TemplateBinding Content}"
|
|
||||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
||||||
HorizontalContentAlignment="Center"/>
|
|
||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
@ -138,7 +137,7 @@
|
||||||
<ToggleButton Classes="time_display_mode"
|
<ToggleButton Classes="time_display_mode"
|
||||||
Width="10" Height="10"
|
Width="10" Height="10"
|
||||||
IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=DisplayTimeAsPeriodInHistories, Mode=TwoWay}"/>
|
IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=DisplayTimeAsPeriodInHistories, Mode=TwoWay}"/>
|
||||||
<TextBlock Classes="table_header" Margin="4,0,0,0" Text="{DynamicResource Text.Histories.Header.Time}"/>
|
<TextBlock Classes="table_header" Margin="6,0,0,0" Text="{DynamicResource Text.Histories.Header.Time}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
</DataGridTemplateColumn.Header>
|
</DataGridTemplateColumn.Header>
|
||||||
|
|
Loading…
Reference in a new issue