summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/AudioView.xaml
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-05-03 17:11:39 +0000
committersr55 <[email protected]>2015-05-03 17:11:39 +0000
commit6689ba81c2919ef34d85da357d4b56b90507824b (patch)
treef0398562066e432fe2c4ccc1ec090888259121b1 /win/CS/HandBrakeWPF/Views/AudioView.xaml
parent6d3692a9b72039a8d7390fe831a1a61ee4611cd5 (diff)
WinGui:
Bug Fixes: - Fix binding error on the audio tab. - Fix the X of X Pass count event args. UI Tweaks: - System colours is now default. - Removed the word "Source" from the Audio and Subtitles lists to make a bit more space for the track name. - Right Aligned the configure default buttons on the audio and subtitle tabs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7150 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/AudioView.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Views/AudioView.xaml31
1 files changed, 18 insertions, 13 deletions
diff --git a/win/CS/HandBrakeWPF/Views/AudioView.xaml b/win/CS/HandBrakeWPF/Views/AudioView.xaml
index ce9ebd1e0..5dee3ee2d 100644
--- a/win/CS/HandBrakeWPF/Views/AudioView.xaml
+++ b/win/CS/HandBrakeWPF/Views/AudioView.xaml
@@ -57,13 +57,20 @@
<Grid Grid.Row="1" Margin="10,5,10,0" Grid.Column="0"
Visibility="{Binding ShowAudioDefaultsPanel, Converter={StaticResource boolToVisConverter}, ConverterParameter=true}">
<Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
- <StackPanel Orientation="Horizontal" Grid.Row="0">
- <splitButton:SplitMenuButton Content="Add Track" cal:Message.Attach="[Event Click] = [Action Add]" FontWeight="Bold" Margin="0,0,10,0">
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="*" />
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="Auto" />
+ </Grid.ColumnDefinitions>
+
+
+ <splitButton:SplitMenuButton Content="Add Track" cal:Message.Attach="[Event Click] = [Action Add]" FontWeight="Bold" Margin="0,0,10,0" Grid.Column="0">
<splitButton:SplitMenuButton.ItemSource>
<MenuItem Header="Add New Track" cal:Message.Attach="[Event Click] = [Action Add]" />
<MenuItem Header="Add All Remaining Tracks" cal:Message.Attach="[Event Click] = [Action AddAllRemaining]" />
@@ -71,23 +78,22 @@
</splitButton:SplitMenuButton.ItemSource>
</splitButton:SplitMenuButton>
- <Button MinWidth="65"
+ <Button MinWidth="65" Grid.Column="1"
Margin="0,0,10,0"
cal:Message.Attach="[Event Click] = [Action Clear]"
Content="Clear" />
-
- <Button MinWidth="65"
+
+ <Button MinWidth="65" Grid.Column="3"
Margin="0,0,10,0"
cal:Message.Attach="[Event Click] = [Action ShowAudioDefaults]"
Content="{Binding SwitchDisplayTitle}" />
- <Button MinWidth="65"
- Margin="0,0,10,0"
+ <Button MinWidth="65" Grid.Column="4"
cal:Message.Attach="[Event Click] = [Action ReloadDefaults]"
Content="Reload Defaults" />
- </StackPanel>
+ </Grid>
</Grid>
<!-- Row 2 -->
@@ -176,8 +182,7 @@
</Grid.RowDefinitions>
<!-- Row 1 -->
- <TextBlock Grid.Column="0" VerticalAlignment="Center" FontWeight="Bold" Text="Source" />
- <ComboBox Grid.Column="1" Height="22" Width="100" Margin="5,0,5,0" HorizontalAlignment="Stretch"
+ <ComboBox Grid.Column="1" Height="22" Width="135" Margin="5,0,5,0" HorizontalAlignment="Stretch"
ItemsSource="{Binding DataContext.SourceTracks, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"
SelectedItem="{Binding ScannedTrack}" />
@@ -282,7 +287,7 @@
</ListBox>
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="10,0,10,0"
- Visibility="{Binding ShowAudioDefaultsPanel, Converter={StaticResource boolToVisConverter}, ConverterParameter=false}">
+ Visibility="{Binding ShowAudioDefaultsPanel, Converter={StaticResource boolToVisConverter}, ConverterParameter=false, FallbackValue=Collapsed}">
<Grid Margin="5,0,0,0" >
<Grid.RowDefinitions>