mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 12:55:00 +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,14 +98,20 @@
|
|||
Text="{DynamicResource Text.Preferences.General.SubjectGuideLength}"
|
||||
HorizontalAlignment="Right"
|
||||
Margin="0,0,16,0"/>
|
||||
<NumericUpDown Grid.Row="3" Grid.Column="1"
|
||||
Minimum="50" Maximum="1000" Increment="1"
|
||||
Height="28"
|
||||
Padding="4"
|
||||
ShowButtonSpinner="False"
|
||||
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}"
|
||||
CornerRadius="3"
|
||||
Value="{Binding SubjectGuideLength, Mode=TwoWay}"/>
|
||||
<Grid Grid.Row="3" Grid.Column="1" ColumnDefinitions="*,64">
|
||||
<Slider Grid.Column="0"
|
||||
Minimum="50" Maximum="200"
|
||||
TickPlacement="BottomRight" TickFrequency="10"
|
||||
IsSnapToTickEnabled="True"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{DynamicResource Brush.Border1}"
|
||||
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"
|
||||
Text="{DynamicResource Text.Preferences.General.MaxHistoryCommits}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue