mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 21:04:59 +00:00
ux: use Slider
instead of NumericUpDown
for SubjectGuideLength
in preferences window
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
d4edb41e9f
commit
f63eefc81b
1 changed files with 14 additions and 8 deletions
|
@ -98,15 +98,21 @@
|
||||||
Text="{DynamicResource Text.Preferences.General.SubjectGuideLength}"
|
Text="{DynamicResource Text.Preferences.General.SubjectGuideLength}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
Margin="0,0,16,0"/>
|
Margin="0,0,16,0"/>
|
||||||
<NumericUpDown Grid.Row="3" Grid.Column="1"
|
<Grid Grid.Row="3" Grid.Column="1" ColumnDefinitions="*,64">
|
||||||
Minimum="50" Maximum="1000" Increment="1"
|
<Slider Grid.Column="0"
|
||||||
Height="28"
|
Minimum="50" Maximum="200"
|
||||||
Padding="4"
|
TickPlacement="BottomRight" TickFrequency="10"
|
||||||
ShowButtonSpinner="False"
|
IsSnapToTickEnabled="True"
|
||||||
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}"
|
VerticalAlignment="Center"
|
||||||
CornerRadius="3"
|
Foreground="{DynamicResource Brush.Border1}"
|
||||||
Value="{Binding SubjectGuideLength, Mode=TwoWay}"/>
|
Value="{Binding SubjectGuideLength, Mode=TwoWay}"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
HorizontalAlignment="Right" VerticalAlignment="Center"
|
||||||
|
Foreground="{DynamicResource Brush.FG1}"
|
||||||
|
Text="{Binding SubjectGuideLength, Mode=OneWay}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<TextBlock Grid.Row="4" Grid.Column="0"
|
<TextBlock Grid.Row="4" Grid.Column="0"
|
||||||
Text="{DynamicResource Text.Preferences.General.MaxHistoryCommits}"
|
Text="{DynamicResource Text.Preferences.General.MaxHistoryCommits}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue