Skip to content

Commit

Permalink
WinGui: Add a tooltip to the audio quality dropdown to indicate High …
Browse files Browse the repository at this point in the history
…vs Low quality. HandBrake#4256
  • Loading branch information
sr55 committed Mar 20, 2022
1 parent 6d47bdd commit 889b840
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion win/CS/HandBrakeWPF/HandBrakeWPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<ItemGroup>
<PackageReference Include="Caliburn.Micro" Version="4.0.136-rc" />
<PackageReference Include="gong-wpf-dragdrop" Version="2.4.3" />
<PackageReference Include="gong-wpf-dragdrop" Version="3.1.1" />
<PackageReference Include="MahApps.Metro" Version="2.4.9" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.2" />
<PackageReference Include="Ookii.Dialogs.Wpf" Version="5.0.1" />
Expand Down
18 changes: 15 additions & 3 deletions win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="FilterView_Deblock" xml:space="preserve">
<value>Deblock reduces blocky artifacts caused by low quality video compression.</value>
Expand Down Expand Up @@ -521,4 +521,10 @@ It is recommended the output file is validated before performing actions on it.<

Please note, there may be inperfections in the UI layout when using these modes. Depending on the language, it may be worth trying both modes to find the best fit.</value>
</data>
<data name="AudioView_Quality" xml:space="preserve">
<value>Target a specific quality level for audio.
1 is lowest quality and 5 is highest quality.

Bitrate will vary source to source.</value>
</data>
</root>
2 changes: 1 addition & 1 deletion win/CS/HandBrakeWPF/Views/AudioDefaultsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
</ComboBox>

<ComboBox Grid.Column="5" Width="55" Margin="5,0,5,0" ItemsSource="{Binding EncoderQualityValues}"
SelectedItem="{Binding Quality}" >
SelectedItem="{Binding Quality}" ToolTip="{x:Static Properties:ResourcesTooltips.AudioView_Quality}">
<ComboBox.Visibility>
<MultiBinding Converter="{StaticResource audioControlVisibilityConverter}">
<Binding Path="IsQualityVisible" />
Expand Down
2 changes: 1 addition & 1 deletion win/CS/HandBrakeWPF/Views/AudioView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
Visibility="{Binding IsRateTypeVisible, Converter={StaticResource boolToVisConverter}, ConverterParameter=false}" />

<ComboBox Grid.Column="5" Width="55" Margin="5,0,5,0" ItemsSource="{Binding EncoderQualityValues}"
SelectedItem="{Binding Quality}"
SelectedItem="{Binding Quality}" ToolTip="{x:Static Properties:ResourcesTooltips.AudioView_Quality}"
Visibility="{Binding IsQualityVisible, Converter={StaticResource boolToVisConverter}, ConverterParameter=false}" />

<ComboBox Grid.Column="5" Width="55" Margin="5,0,5,0" ItemsSource="{Binding Bitrates}"
Expand Down

0 comments on commit 889b840

Please sign in to comment.