Some margin styling

This commit is contained in:
Justin Swanson 2019-11-17 01:28:33 -06:00
parent cafba5ff81
commit 06ceb197b0
4 changed files with 14 additions and 4 deletions

View File

@ -955,7 +955,7 @@
<Setter Property="Background" Value="{StaticResource TextBoxBackground}" />
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="2,2,2,1" />
<Setter Property="Padding" Value="3" />
<Setter Property="AllowDrop" Value="true" />
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
@ -3616,4 +3616,11 @@
</Setter.Value>
</Setter>
</Style>
<!-- FilePicker -->
<Style x:Key="MainFilePickerStyle" TargetType="{x:Type local:FilePicker}">
<Setter Property="FontSize" Value="14" />
</Style>
<Style BasedOn="{StaticResource MainFilePickerStyle}" TargetType="{x:Type local:FilePicker}" />
</ResourceDictionary>

View File

@ -24,7 +24,7 @@
CornerRadius="3" />
<TextBox
Grid.Column="0"
Margin="5,0,-2,0"
Margin="5,1,-2,1"
VerticalContentAlignment="Center"
Background="{StaticResource DarkBackgroundBrush}"
Text="{Binding TargetPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"

View File

@ -85,7 +85,10 @@
<Setter Property="FontSize" Value="15" />
<Setter Property="Margin" Value="0,0,0,6" />
</Style>
<Style x:Key="PickerStyle" TargetType="local:FilePicker">
<Style
x:Key="PickerStyle"
BasedOn="{StaticResource MainFilePickerStyle}"
TargetType="local:FilePicker">
<Setter Property="Margin" Value="0,0,0,6" />
</Style>
</StackPanel.Resources>

View File

@ -46,7 +46,7 @@
ToolTip="The game you wish to target">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding DisplayName}" />
<TextBlock Margin="6,2" Text="{Binding DisplayName}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>