diff options
author | sr55 <[email protected]> | 2017-12-21 22:05:51 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-12-21 22:06:06 +0000 |
commit | fb37564d75ef1298129c4f5529e808d17e62fcc5 (patch) | |
tree | b74dd92ca8b888da23ca38857ea9564ff35ed13d /win/CS/HandBrakeWPF/Views/MainView.xaml | |
parent | 138c0d6dbb4cb8ed34adc0bcb152a69af0fb0c9a (diff) |
WinGui: Further UI consistency tweaks to the main window. Made the layout a bit more compact. #833
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/MainView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index e34aa2a2f..ce937cdcd 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -299,15 +299,15 @@ </Grid.ColumnDefinitions>
<Label Content="{x:Static Properties:ResourcesUI.MainView_Source}" FontWeight="Bold" Grid.Column="0" />
- <TextBlock Text="{Binding Path=SourceLabel}" ToolTip="{Binding Path=SourceLabel}" TextTrimming="CharacterEllipsis" MaxWidth="595" Grid.Column="1" />
- <TextBlock Text="{Binding SourceInfo}" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="DimGray" Grid.Column="2" Margin="15,0,0,0" MaxWidth="360" />
+ <TextBlock Text="{Binding Path=SourceLabel}" ToolTip="{Binding Path=SourceLabel}" TextTrimming="CharacterEllipsis" MaxWidth="595" Grid.Column="1" Margin="7,0,0,0" />
+ <TextBlock Text="{Binding SourceInfo}" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="DimGray" Grid.Column="2" Margin="10,0,0,0" MaxWidth="360" />
</Grid>
- <StackPanel Orientation="Horizontal" Grid.Row="1">
- <Label Margin="8,0,0,0" FontWeight="Bold" Content="{x:Static Properties:ResourcesUI.MainView_Title}" />
+ <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0,5,0,0">
+ <Label FontWeight="Bold" Content="{x:Static Properties:ResourcesUI.MainView_Title}" />
<ComboBox Name="Titles"
MinWidth="100"
- Margin="8,0,0,0"
+ Margin="17,0,0,0"
ItemsSource="{Binding ScannedSource.Titles}"
ToolTip="{x:Static Properties:ResourcesTooltips.MainView_Title}"
SelectedItem="{Binding Path=SelectedTitle}" />
@@ -366,11 +366,11 @@ </Grid>
<!-- Presets Options -->
- <StackPanel Grid.Row="1" Orientation="Vertical" Margin="10,5,10,5" IsEnabled="{Binding HasSource, Converter={StaticResource booleanConverter}, ConverterParameter=false}">
- <Label Content="Presets" FontWeight="Bold" VerticalAlignment="Center" />
- <StackPanel Orientation="Horizontal" Margin="8,0,0,0" Visibility="{Binding IsPresetPanelShowing, Converter={StaticResource boolToVisConverter}, ConverterParameter=true}">
+ <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,10,10,5" IsEnabled="{Binding HasSource, Converter={StaticResource booleanConverter}, ConverterParameter=false}">
+ <Label Content="Presets:" FontWeight="Bold" VerticalAlignment="Center" />
+ <StackPanel Orientation="Horizontal" Margin="5,0,0,0" Visibility="{Binding IsPresetPanelShowing, Converter={StaticResource boolToVisConverter}, ConverterParameter=true}">
- <Button x:Name="SelectPresetsButton" Margin="15,0,0,0" VerticalAlignment="Center" Click="SelectPreset_OnClick" Width="255">
+ <Button x:Name="SelectPresetsButton" VerticalAlignment="Center" Click="SelectPreset_OnClick" Width="255">
<Button.Content>
<Grid VerticalAlignment="Stretch" Width="235">
<Grid.ColumnDefinitions>
@@ -401,7 +401,7 @@ <Button Content="{x:Static Properties:ResourcesUI.MainView_Reload}" cal:Message.Attach="[Event Click] = [Action PresetSelect]" Margin="15,0,0,0" VerticalAlignment="Center" />
<Button Content="{x:Static Properties:ResourcesUI.MainView_SaveNewPreset}" cal:Message.Attach="[Event Click] = [Action PresetAdd]" Margin="5,0,0,0" VerticalAlignment="Center" />
- <Button x:Name="MorePresetOptionsButton" Margin="15,0,0,0" VerticalAlignment="Center" Click="MorePresetOptionsButton_OnClick">
+ <Button x:Name="MorePresetOptionsButton" Margin="15,0,0,0" VerticalAlignment="Center" Click="MorePresetOptionsButton_OnClick" Visibility="Collapsed">
<Button.Content>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="0,0,5,0" Padding="0"
@@ -489,21 +489,18 @@ Margin="10,5,10,15"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
- <Label Content="{x:Static Properties:ResourcesUI.MainView_Destination}" FontWeight="Bold" />
<Grid>
<Grid.ColumnDefinitions>
- <ColumnDefinition Width="58" />
- <ColumnDefinition Width="24"/>
- <ColumnDefinition Width="17*" />
- <ColumnDefinition Width="972*"/>
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
- <Label Margin="8,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_File}" Grid.ColumnSpan="2" />
+ <Label Margin="0,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_File}" FontWeight="Bold" />
<TextBox Name="Destination"
- Grid.Column="2"
- Margin="8,0,0,0" ToolTip="{x:Static Properties:ResourcesTooltips.MainView_Destination}"
+ Grid.Column="1"
+ Margin="5,0,0,0" ToolTip="{x:Static Properties:ResourcesTooltips.MainView_Destination}"
Text="{Binding Destination,
- UpdateSourceTrigger=PropertyChanged}" Grid.ColumnSpan="2">
+ UpdateSourceTrigger=PropertyChanged}">
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="Open this Directory" cal:Message.Attach="[Event Click] = [Action OpenDestinationDirectory]" />
@@ -511,9 +508,9 @@ </TextBox.ContextMenu>
</TextBox>
<Button Name="DestinationBrowser"
- Grid.Column="4"
- Margin="8,2,0,1" FontWeight="Bold"
- Content="Browse"
+ Grid.Column="2"
+ Margin="10,0,0,0" FontWeight="Bold"
+ Content="Browse"
ToolTip="{x:Static Properties:ResourcesTooltips.MainView_Browse}"
cal:Message.Attach="[Event Click] = [Action BrowseDestination]"
/>
|