style<Slider>: customize slider style

This commit is contained in:
leo 2023-08-25 17:08:50 +08:00
parent ef894d81b4
commit 5c411f6258
3 changed files with 131 additions and 6 deletions

View file

@ -140,8 +140,7 @@
<Grid Grid.Row="3" Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="4"/>
<ColumnDefinition Width="56"/>
<ColumnDefinition Width="48"/>
</Grid.ColumnDefinitions>
<Slider
@ -152,10 +151,10 @@
Value="{Binding Source={x:Static models:Preference.Instance}, Path=General.MaxHistoryCommits, Mode=TwoWay}">
</Slider>
<controls:TextEdit
Grid.Column="2"
Height="24"
IsReadOnly="True"
<TextBlock
Grid.Column="1"
HorizontalAlignment="Right" VerticalAlignment="Center"
Foreground="{DynamicResource Brush.FG1}"
Text="{Binding Source={x:Static models:Preference.Instance}, Path=General.MaxHistoryCommits}"/>
</Grid>