mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
ux: allows users to adjust the height of the commit message input box (#201)
This commit is contained in:
parent
907e009275
commit
39eecd66d7
2 changed files with 22 additions and 35 deletions
|
@ -87,10 +87,23 @@
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
|
|
||||||
<TextBlock Grid.Row="2" Grid.Column="0"
|
<TextBlock Grid.Row="2" Grid.Column="0"
|
||||||
|
Text="{DynamicResource Text.Preference.General.SubjectGuideLength}"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="0,0,16,0"/>
|
||||||
|
<NumericUpDown Grid.Row="2" 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}"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="3" Grid.Column="0"
|
||||||
Text="{DynamicResource Text.Preference.General.MaxHistoryCommits}"
|
Text="{DynamicResource Text.Preference.General.MaxHistoryCommits}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
Margin="0,0,16,0"/>
|
Margin="0,0,16,0"/>
|
||||||
<Grid Grid.Row="2" Grid.Column="1" ColumnDefinitions="*,64">
|
<Grid Grid.Row="3" Grid.Column="1" ColumnDefinitions="*,64">
|
||||||
<Slider Grid.Column="0"
|
<Slider Grid.Column="0"
|
||||||
Minimum="20000" Maximum="100000"
|
Minimum="20000" Maximum="100000"
|
||||||
TickPlacement="BottomRight" TickFrequency="5000"
|
TickPlacement="BottomRight" TickFrequency="5000"
|
||||||
|
@ -114,34 +127,6 @@
|
||||||
Text="{Binding MaxHistoryCommits}"/>
|
Text="{Binding MaxHistoryCommits}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<TextBlock Grid.Row="3" Grid.Column="0"
|
|
||||||
Text="{DynamicResource Text.Preference.General.SubjectGuideLength}"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
Margin="0,0,16,0"/>
|
|
||||||
<Grid Grid.Row="3" Grid.Column="1" ColumnDefinitions="*,64">
|
|
||||||
<Slider Grid.Column="0"
|
|
||||||
Minimum="50" Maximum="250"
|
|
||||||
TickPlacement="BottomRight" TickFrequency="4"
|
|
||||||
IsSnapToTickEnabled="False"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Foreground="{DynamicResource Brush.Border1}"
|
|
||||||
Value="{Binding SubjectGuideLength, Mode=TwoWay}">
|
|
||||||
<Slider.Resources>
|
|
||||||
<Thickness x:Key="SliderTopHeaderMargin">0,0,0,4</Thickness>
|
|
||||||
<GridLength x:Key="SliderPreContentMargin">0</GridLength>
|
|
||||||
<GridLength x:Key="SliderPostContentMargin">0</GridLength>
|
|
||||||
<CornerRadius x:Key="SliderThumbCornerRadius">8</CornerRadius>
|
|
||||||
<x:Double x:Key="SliderHorizontalThumbWidth">16</x:Double>
|
|
||||||
<x:Double x:Key="SliderHorizontalThumbHeight">16</x:Double>
|
|
||||||
</Slider.Resources>
|
|
||||||
</Slider>
|
|
||||||
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Center"
|
|
||||||
Foreground="{DynamicResource Brush.FG1}"
|
|
||||||
Text="{Binding SubjectGuideLength}"/>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<CheckBox Grid.Row="4" Grid.Column="1"
|
<CheckBox Grid.Row="4" Grid.Column="1"
|
||||||
Content="{DynamicResource Text.Preference.General.RestoreTabs}"
|
Content="{DynamicResource Text.Preference.General.RestoreTabs}"
|
||||||
IsChecked="{Binding RestoreTabs, Mode=TwoWay}"/>
|
IsChecked="{Binding RestoreTabs, Mode=TwoWay}"/>
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
BorderBrush="{DynamicResource Brush.Border0}"/>
|
BorderBrush="{DynamicResource Brush.Border0}"/>
|
||||||
|
|
||||||
<!-- Right -->
|
<!-- Right -->
|
||||||
<Grid Grid.Column="2" Margin="0,4,4,4" RowDefinitions="*,Auto,32">
|
<Grid Grid.Column="2" Margin="0,4,4,4" RowDefinitions="*,4,128,36">
|
||||||
<!-- Select Change Detail -->
|
<!-- Select Change Detail -->
|
||||||
<Grid Grid.Row="0">
|
<Grid Grid.Row="0">
|
||||||
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
||||||
|
@ -158,14 +158,16 @@
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<!-- Splitter -->
|
||||||
|
<GridSplitter Grid.Row="1" MinHeight="1"
|
||||||
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
|
Background="Transparent"/>
|
||||||
|
|
||||||
<!-- Commit Message -->
|
<!-- Commit Message -->
|
||||||
<v:CommitMessageTextBox Grid.Row="1"
|
<v:CommitMessageTextBox Grid.Row="2" Text="{Binding CommitMessage, Mode=TwoWay}"/>
|
||||||
Height="100"
|
|
||||||
Margin="0,4"
|
|
||||||
Text="{Binding CommitMessage, Mode=TwoWay}"/>
|
|
||||||
|
|
||||||
<!-- Commit Options -->
|
<!-- Commit Options -->
|
||||||
<Grid Grid.Row="2" ColumnDefinitions="Auto,Auto,*,Auto,Auto,Auto">
|
<Grid Grid.Row="3" Margin="0,6,0,0" ColumnDefinitions="Auto,Auto,*,Auto,Auto,Auto">
|
||||||
<Button Grid.Column="0"
|
<Button Grid.Column="0"
|
||||||
Classes="icon_button"
|
Classes="icon_button"
|
||||||
Width="14" Height="14"
|
Width="14" Height="14"
|
||||||
|
|
Loading…
Reference in a new issue