diff options
author | sr55 <[email protected]> | 2019-06-22 20:36:42 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-06-22 20:36:59 +0100 |
commit | 0d95dacfc29d4b7bb92f1fb52266c1f376e06416 (patch) | |
tree | ec1b565842632955bdd0bda1f5f78d70d2c1b5bd /win/CS/HandBrakeWPF | |
parent | 851f6ca16f4d50b87427501bd4647fe695057583 (diff) |
WinGui: Further work on the new Dark Theme. Mostly around icons.
Diffstat (limited to 'win/CS/HandBrakeWPF')
58 files changed, 227 insertions, 101 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml index f76bc00e2..1a5934c94 100644 --- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml +++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml @@ -10,6 +10,7 @@ <UserControl.Resources>
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
+ <converters:ThemeImageConverter x:Key="themeConverter" />
</UserControl.Resources>
<Grid Height="{Binding ElementName=sourcePanel, Path=ActualHeight}">
@@ -65,7 +66,7 @@ <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
- <Image Source="../Views/Images/folder32.png" Width="32" Grid.Column="0" />
+ <Image Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='../Views/Images/Folder.png'}" Width="32" Grid.Column="0" />
<StackPanel Orientation="Vertical" Grid.Column="1">
<TextBlock Text="{x:Static Properties:Resources.SourceSelection_FolderBatchScan}" VerticalAlignment="Center" Margin="5,0,0,0" />
<TextBlock Text="{x:Static Properties:Resources.SourceSelection_OpenFolderWIth}" TextWrapping="Wrap" VerticalAlignment="Center" Margin="5,0,0,0" />
@@ -81,7 +82,7 @@ <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
- <Image Source="../Views/Images/File32.png" Width="32" Grid.Column="0" />
+ <Image Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='../Views/Images/File.png'}" Width="32" Height="32" Grid.Column="0" />
<StackPanel Orientation="Vertical" Grid.Column="1">
<TextBlock Text="{x:Static Properties:Resources.SourceSelection_File}" VerticalAlignment="Center" Margin="5,0,0,0" />
<TextBlock Text="{x:Static Properties:Resources.SourceSelection_SingleVideoFile}" TextWrapping="Wrap" VerticalAlignment="Center" Margin="5,0,0,0" />
@@ -97,7 +98,7 @@ Margin="0,0,0,10" Padding="8" HorizontalAlignment="Left"
Tag="{Binding}" AutomationProperties.Name="{x:Static Properties:Resources.SourceSelection_ChooseDisc}">
<StackPanel Orientation="Horizontal" MinWidth="100">
- <Image Source="../Views/Images/Disc.png" Width="32" />
+ <Image Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='../Views/Images/Disc.png'}" Width="32" />
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Text}" VerticalAlignment="Center" Margin="5,0,0,0" />
<TextBlock Text="{x:Static Properties:Resources.SourceSelection_OpenDVDBluray}" VerticalAlignment="Center" Margin="5,0,0,0" />
diff --git a/win/CS/HandBrakeWPF/Converters/ThemeImageConverter.cs b/win/CS/HandBrakeWPF/Converters/ThemeImageConverter.cs new file mode 100644 index 000000000..78b06c622 --- /dev/null +++ b/win/CS/HandBrakeWPF/Converters/ThemeImageConverter.cs @@ -0,0 +1,67 @@ +// -------------------------------------------------------------------------------------------------------------------- +// <copyright file="ThemeImageConverter.cs" company="HandBrake Project (http://handbrake.fr)"> +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// </copyright> +// <summary> +// Handles the Image files for the Theme selected. +// </summary> +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.Converters +{ + using System; + using System.Globalization; + using System.Linq; + using System.Threading; + using System.Windows.Data; + + using Caliburn.Micro; + + using HandBrakeWPF.Services.Interfaces; + + public class ThemeImageConverter : IValueConverter + { + private readonly IUserSettingService userSettingService; + + private readonly bool isDarkTheme; + + public ThemeImageConverter() + { + this.userSettingService = IoC.Get<IUserSettingService>(); + this.isDarkTheme = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.UseDarkTheme); + } + + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + string image = parameter as string; + if (!string.IsNullOrEmpty(image)) + { + + string direcotry = "Images/"; + if (image.Contains("/")) + { + string[] components = image.Split('/'); + string file = components.LastOrDefault(); + direcotry = image.Replace(file, string.Empty); + image = file; + } + + if (this.isDarkTheme) + { + return direcotry + "Dark/" + image; + } + else + { + return direcotry + "Light/" + image; + } + } + + return null; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj index fcd89d65b..107176fd6 100644 --- a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj +++ b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj @@ -141,6 +141,7 @@ <Compile Include="Converters\Subtitles\CanBurnSubtitleConverter.cs" />
<Compile Include="Converters\Subtitles\SubtitleBurnInBehaviourConverter.cs" />
<Compile Include="Converters\Subtitles\SubtitleBehaviourConverter.cs" />
+ <Compile Include="Converters\ThemeImageConverter.cs" />
<Compile Include="Converters\Video\VideoOptionsTooltipConverter.cs" />
<Compile Include="Converters\Video\ScalingConverter.cs" />
<Compile Include="EventArgs\OutputFormatChangedEventArgs.cs" />
@@ -643,50 +644,24 @@ <EmbeddedResource Include="defaultsettings.xml">
<SubType>Designer</SubType>
</EmbeddedResource>
- <Resource Include="Views\Images\add40.png" />
- <Resource Include="Views\Images\add.png" />
- <Resource Include="Views\Images\remove.png" />
<Resource Include="Views\Images\information.png" />
- <Resource Include="Views\Images\picture_small.png" />
<Resource Include="Views\Images\warningsmall.png" />
- <Resource Include="Views\Images\Refresh.ico" />
<Resource Include="Views\Images\Complete.png" />
<Resource Include="Views\Images\Working0.png" />
<Resource Include="handbrakepineapple.ico" />
- <Resource Include="Views\Images\Close.png" />
- <Resource Include="Views\Images\Options24.png" />
</ItemGroup>
<ItemGroup>
- <Resource Include="Views\Images\ActivityWindow.png" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="Views\Images\ActivityWindow_small.png" />
- <Resource Include="Views\Images\copy.png" />
<Resource Include="Views\Images\disc_small.png" />
- <Resource Include="Views\Images\Output_Small.png" />
- <Resource Include="Views\Images\Pref_Small.png" />
- <Resource Include="Views\Images\Queue.png" />
- <Resource Include="Views\Images\Queue_Small.png" />
<Resource Include="Views\Images\stop.png" />
<Resource Include="Views\Images\Play_small.png" />
<Resource Include="Views\Images\Play.png" />
- <Resource Include="Views\Images\picture.png" />
<Resource Include="Views\Images\Pause.png" />
- <Resource Include="Views\Images\Movies.png" />
<Resource Include="Views\Images\logo64.png" />
<Resource Include="Views\Images\logo128.png" />
- <Resource Include="Views\Images\Preferences.png" />
- <Resource Include="Views\Images\folder.png" />
<Resource Include="Views\Images\ErrorX.png" />
- <Resource Include="Views\Images\AddToQueue_small.png" />
- <Resource Include="Views\Images\AddToQueue.png" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="Views\Images\Advanced.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Views\Images\Disc.png" />
- <Resource Include="Views\Images\file.png" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.1">
@@ -706,21 +681,9 @@ </BootstrapperPackage>
</ItemGroup>
<ItemGroup>
- <Resource Include="Views\Images\folder32.png" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="Views\Images\File32.png" />
- </ItemGroup>
- <ItemGroup>
<Resource Include="Views\Images\information64.png" />
</ItemGroup>
<ItemGroup>
- <Resource Include="Views\Images\Movies_small.png" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="Views\Images\Presets2.png" />
- </ItemGroup>
- <ItemGroup>
<ProjectReference Include="..\HandBrake.Interop\HandBrake.Interop.csproj">
<Project>{087a2ba8-bac2-4577-a46f-07ff9d420016}</Project>
<Name>HandBrake.Interop</Name>
@@ -735,6 +698,94 @@ <ItemGroup>
<Resource Include="Views\Images\question.png" />
</ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Activity2.png" />
+ <Resource Include="Views\Images\Dark\AddToQueue.png" />
+ <Resource Include="Views\Images\Dark\Presets2.png" />
+ <Resource Include="Views\Images\Dark\Preview.png" />
+ <Resource Include="Views\Images\Dark\Queue.png" />
+ <Resource Include="Views\Images\Dark\Source.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Source.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\AddToQueue.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Queue.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Preview.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Activity2.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Presets2.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\File.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Add.png" />
+ <Resource Include="Views\Images\Dark\Advanced.png" />
+ <Resource Include="Views\Images\Dark\Remove.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Add.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Remove.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Advanced.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Activity.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Activity.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Settings.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Settings.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Copy.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Copy.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\New.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\New.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Refresh.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Refresh.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Folder.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Folder.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\File.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Light\Disc.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Views\Images\Dark\Disc.png" />
+ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<TargetFrameworkSDKToolsDirectory Condition=" '$(Platform)' == 'x64'">$(TargetFrameworkSDKToolsDirectory)$(Platform)\</TargetFrameworkSDKToolsDirectory>
diff --git a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs index 353beb922..f0aba3163 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs @@ -4246,6 +4246,15 @@ namespace HandBrakeWPF.Properties { } /// <summary> + /// Looks up a localized string similar to Reset. + /// </summary> + public static string QueueView_Reset { + get { + return ResourceManager.GetString("QueueView_Reset", resourceCulture); + } + } + + /// <summary> /// Looks up a localized string similar to Retry All Jobs. /// </summary> public static string QueueView_ResetAllJobs { @@ -4264,7 +4273,7 @@ namespace HandBrakeWPF.Properties { } /// <summary> - /// Looks up a localized string similar to Retry Selected Jobs. + /// Looks up a localized string similar to Reset Selected Jobs. /// </summary> public static string QueueView_ResetSelectedJobs { get { @@ -4273,15 +4282,6 @@ namespace HandBrakeWPF.Properties { } /// <summary> - /// Looks up a localized string similar to Retry. - /// </summary> - public static string QueueView_Retry { - get { - return ResourceManager.GetString("QueueView_Retry", resourceCulture); - } - } - - /// <summary> /// Looks up a localized string similar to Shutdown. /// </summary> public static string QueueView_Shutdown { diff --git a/win/CS/HandBrakeWPF/Properties/Resources.resx b/win/CS/HandBrakeWPF/Properties/Resources.resx index 37704b92b..f30ddce1a 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.resx +++ b/win/CS/HandBrakeWPF/Properties/Resources.resx @@ -1504,10 +1504,10 @@ This will not affect your current settings in the Subtitle tab.</value> <value>Retry Failed</value>
</data>
<data name="QueueView_ResetSelectedJobs" xml:space="preserve">
- <value>Retry Selected Jobs</value>
+ <value>Reset Selected Jobs</value>
</data>
- <data name="QueueView_Retry" xml:space="preserve">
- <value>Retry</value>
+ <data name="QueueView_Reset" xml:space="preserve">
+ <value>Reset</value>
</data>
<data name="QueueView_Shutdown" xml:space="preserve">
<value>Shutdown</value>
diff --git a/win/CS/HandBrakeWPF/Settings.StyleCop b/win/CS/HandBrakeWPF/Settings.StyleCop new file mode 100644 index 000000000..29a523332 --- /dev/null +++ b/win/CS/HandBrakeWPF/Settings.StyleCop @@ -0,0 +1,17 @@ +<StyleCopSettings Version="105"> + <Parsers> + <Parser ParserId="StyleCop.CSharp.CsParser"> + <ParserSettings> + <BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty> + </ParserSettings> + </Parser> + </Parsers> + <Analyzers> + <Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules"> + <AnalyzerSettings> + <StringProperty Name="CompanyName">HandBrake Project (http://handbrake.fr)</StringProperty> + <StringProperty Name="Copyright">This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.</StringProperty> + </AnalyzerSettings> + </Analyzer> + </Analyzers> +</StyleCopSettings>
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Views/Images/ActivityWindow.png b/win/CS/HandBrakeWPF/Views/Images/ActivityWindow.png Binary files differdeleted file mode 100644 index 8c9f5631a..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/ActivityWindow.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/AddToQueue.png b/win/CS/HandBrakeWPF/Views/Images/AddToQueue.png Binary files differdeleted file mode 100644 index 833dd0407..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/AddToQueue.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/Close.png b/win/CS/HandBrakeWPF/Views/Images/Close.png Binary files differdeleted file mode 100644 index 4953577a0..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/Close.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Activity.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Activity.png Binary files differnew file mode 100644 index 000000000..fc3424945 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Activity.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Activity2.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Activity2.png Binary files differnew file mode 100644 index 000000000..506db8690 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Activity2.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Add.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Add.png Binary files differnew file mode 100644 index 000000000..224f7fd3f --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Add.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/AddToQueue.png b/win/CS/HandBrakeWPF/Views/Images/Dark/AddToQueue.png Binary files differnew file mode 100644 index 000000000..7f233e85a --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/AddToQueue.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Advanced.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Advanced.png Binary files differnew file mode 100644 index 000000000..72ab6f0b4 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Advanced.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Copy.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Copy.png Binary files differnew file mode 100644 index 000000000..f3d805511 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Copy.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Disc.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Disc.png Binary files differnew file mode 100644 index 000000000..d90cf0c0f --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Disc.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/File.png b/win/CS/HandBrakeWPF/Views/Images/Dark/File.png Binary files differnew file mode 100644 index 000000000..43270580f --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/File.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Folder.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Folder.png Binary files differnew file mode 100644 index 000000000..6ff3f43c7 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Folder.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/New.png b/win/CS/HandBrakeWPF/Views/Images/Dark/New.png Binary files differnew file mode 100644 index 000000000..d3caab5c5 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/New.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Presets2.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Presets2.png Binary files differnew file mode 100644 index 000000000..2466c3b28 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Presets2.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Preview.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Preview.png Binary files differnew file mode 100644 index 000000000..5bd6797b1 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Preview.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Queue.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Queue.png Binary files differnew file mode 100644 index 000000000..fa6303c2b --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Queue.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Refresh.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Refresh.png Binary files differnew file mode 100644 index 000000000..9a149ec92 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Refresh.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Remove.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Remove.png Binary files differnew file mode 100644 index 000000000..ad3b255fe --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Remove.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Settings.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Settings.png Binary files differnew file mode 100644 index 000000000..e31e6ed16 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Settings.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Dark/Source.png b/win/CS/HandBrakeWPF/Views/Images/Dark/Source.png Binary files differnew file mode 100644 index 000000000..891c70339 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Dark/Source.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Light/Activity.png b/win/CS/HandBrakeWPF/Views/Images/Light/Activity.png Binary files differnew file mode 100644 index 000000000..a2de1eead --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Activity.png diff --git a/win/CS/HandBrakeWPF/Views/Images/ActivityWindow_small.png b/win/CS/HandBrakeWPF/Views/Images/Light/Activity2.png Binary files differindex 2589bc085..2589bc085 100644 --- a/win/CS/HandBrakeWPF/Views/Images/ActivityWindow_small.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Activity2.png diff --git a/win/CS/HandBrakeWPF/Views/Images/add.png b/win/CS/HandBrakeWPF/Views/Images/Light/Add.png Binary files differindex 742b5d871..742b5d871 100644 --- a/win/CS/HandBrakeWPF/Views/Images/add.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Add.png diff --git a/win/CS/HandBrakeWPF/Views/Images/AddToQueue_small.png b/win/CS/HandBrakeWPF/Views/Images/Light/AddToQueue.png Binary files differindex 4ac073682..4ac073682 100644 --- a/win/CS/HandBrakeWPF/Views/Images/AddToQueue_small.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/AddToQueue.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Advanced.png b/win/CS/HandBrakeWPF/Views/Images/Light/Advanced.png Binary files differindex 23eab12dc..23eab12dc 100644 --- a/win/CS/HandBrakeWPF/Views/Images/Advanced.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Advanced.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Light/Copy.png b/win/CS/HandBrakeWPF/Views/Images/Light/Copy.png Binary files differnew file mode 100644 index 000000000..1c8794e14 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Copy.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Light/Disc.png b/win/CS/HandBrakeWPF/Views/Images/Light/Disc.png Binary files differnew file mode 100644 index 000000000..c69081b1e --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Disc.png diff --git a/win/CS/HandBrakeWPF/Views/Images/File32.png b/win/CS/HandBrakeWPF/Views/Images/Light/File.png Binary files differindex b97c6bafd..b97c6bafd 100644 --- a/win/CS/HandBrakeWPF/Views/Images/File32.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/File.png diff --git a/win/CS/HandBrakeWPF/Views/Images/folder32.png b/win/CS/HandBrakeWPF/Views/Images/Light/Folder.png Binary files differindex 79ceadfe1..79ceadfe1 100644 --- a/win/CS/HandBrakeWPF/Views/Images/folder32.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Folder.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Options24.png b/win/CS/HandBrakeWPF/Views/Images/Light/New.png Binary files differindex 17bd284c8..17bd284c8 100644 --- a/win/CS/HandBrakeWPF/Views/Images/Options24.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/New.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Presets2.png b/win/CS/HandBrakeWPF/Views/Images/Light/Presets2.png Binary files differindex f4205306e..f4205306e 100644 --- a/win/CS/HandBrakeWPF/Views/Images/Presets2.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Presets2.png diff --git a/win/CS/HandBrakeWPF/Views/Images/picture_small.png b/win/CS/HandBrakeWPF/Views/Images/Light/Preview.png Binary files differindex bb57b35b4..bb57b35b4 100644 --- a/win/CS/HandBrakeWPF/Views/Images/picture_small.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Preview.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Queue_Small.png b/win/CS/HandBrakeWPF/Views/Images/Light/Queue.png Binary files differindex cf586b0f9..cf586b0f9 100644 --- a/win/CS/HandBrakeWPF/Views/Images/Queue_Small.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Queue.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Light/Refresh.png b/win/CS/HandBrakeWPF/Views/Images/Light/Refresh.png Binary files differnew file mode 100644 index 000000000..c2939aa54 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Refresh.png diff --git a/win/CS/HandBrakeWPF/Views/Images/remove.png b/win/CS/HandBrakeWPF/Views/Images/Light/Remove.png Binary files differindex dd6459f2a..dd6459f2a 100644 --- a/win/CS/HandBrakeWPF/Views/Images/remove.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Remove.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Light/Settings.png b/win/CS/HandBrakeWPF/Views/Images/Light/Settings.png Binary files differnew file mode 100644 index 000000000..d1e9757e7 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Settings.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Movies_small.png b/win/CS/HandBrakeWPF/Views/Images/Light/Source.png Binary files differindex 128edda8c..128edda8c 100644 --- a/win/CS/HandBrakeWPF/Views/Images/Movies_small.png +++ b/win/CS/HandBrakeWPF/Views/Images/Light/Source.png diff --git a/win/CS/HandBrakeWPF/Views/Images/Movies.png b/win/CS/HandBrakeWPF/Views/Images/Movies.png Binary files differdeleted file mode 100644 index 9afc3cf67..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/Movies.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/Output_Small.png b/win/CS/HandBrakeWPF/Views/Images/Output_Small.png Binary files differdeleted file mode 100644 index 91f43b411..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/Output_Small.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/Pref_Small.png b/win/CS/HandBrakeWPF/Views/Images/Pref_Small.png Binary files differdeleted file mode 100644 index c7b9a84d7..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/Pref_Small.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/Preferences.png b/win/CS/HandBrakeWPF/Views/Images/Preferences.png Binary files differdeleted file mode 100644 index 118b2b5e5..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/Preferences.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/Queue.png b/win/CS/HandBrakeWPF/Views/Images/Queue.png Binary files differdeleted file mode 100644 index f682dc0e3..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/Queue.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/Refresh.ico b/win/CS/HandBrakeWPF/Views/Images/Refresh.ico Binary files differdeleted file mode 100644 index 3267a092a..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/Refresh.ico +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/add40.png b/win/CS/HandBrakeWPF/Views/Images/add40.png Binary files differdeleted file mode 100644 index 45174b420..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/add40.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/copy.png b/win/CS/HandBrakeWPF/Views/Images/copy.png Binary files differdeleted file mode 100644 index cdaca677a..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/copy.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/file.png b/win/CS/HandBrakeWPF/Views/Images/file.png Binary files differdeleted file mode 100644 index 208778c57..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/file.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/folder.png b/win/CS/HandBrakeWPF/Views/Images/folder.png Binary files differdeleted file mode 100644 index fe35b6e82..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/folder.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/Images/picture.png b/win/CS/HandBrakeWPF/Views/Images/picture.png Binary files differdeleted file mode 100644 index afb153b09..000000000 --- a/win/CS/HandBrakeWPF/Views/Images/picture.png +++ /dev/null diff --git a/win/CS/HandBrakeWPF/Views/LogView.xaml b/win/CS/HandBrakeWPF/Views/LogView.xaml index f8f185644..eaa65f3e5 100644 --- a/win/CS/HandBrakeWPF/Views/LogView.xaml +++ b/win/CS/HandBrakeWPF/Views/LogView.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.caliburnproject.org"
xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"
+ xmlns:converters="clr-namespace:HandBrakeWPF.Converters"
Title="{Binding Title}"
Width="525"
Height="600"
@@ -10,6 +11,11 @@ MinHeight="600"
WindowStartupLocation="CenterScreen"
TextOptions.TextFormattingMode="Display">
+
+ <Window.Resources>
+ <converters:ThemeImageConverter x:Key="themeConverter" />
+ </Window.Resources>
+
<Grid>
<Grid>
<Grid.RowDefinitions>
@@ -27,14 +33,14 @@ <Button cal:Message.Attach="[Event Click] = [Action CopyLog]" Margin="10,0,0,0"
AutomationProperties.Name="{x:Static Properties:Resources.LogView_CopyClipboard}" >
<StackPanel Orientation="Horizontal">
- <Image Width="16" Source="Images/copy.png" />
+ <Image Width="16" Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='../Views/Images/Copy.png'}" />
<TextBlock Margin="2,0,0,0" Text="{x:Static Properties:Resources.LogView_CopyClipboard}" />
</StackPanel>
</Button>
<Button Margin="5,0,0,0" cal:Message.Attach="[Event Click] = [Action OpenLogDirectory]"
AutomationProperties.Name="{x:Static Properties:Resources.LogView_OpenLogDir}" >
<StackPanel Orientation="Horizontal">
- <Image Width="16" Source="Images/folder.png" />
+ <Image Width="16" Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Folder.png'}" />
<TextBlock Margin="2,0,0,0" Text="{x:Static Properties:Resources.LogView_OpenLogDir}" />
</StackPanel>
</Button>
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 524cc150e..fecc7ffcf 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -23,6 +23,7 @@ <Converters:LongToIntConverter x:Key="longToIntConverter" />
<queue:InlineQueueConverter x:Key="InlineQueueConverter" />
<Converters:BooleanConverter x:Key="NotBooleanConverter" />
+ <Converters:ThemeImageConverter x:Key="themeConverter" />
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Padding" Value="8,2" />
@@ -87,18 +88,18 @@ <MenuItem Header="{x:Static Properties:Resources.MainView_ToolsMenu}">
<MenuItem Header="{x:Static Properties:Resources.MainView_ShowQueueMenu}" cal:Message.Attach="[Event Click] = [Action OpenQueueWindow]" InputGestureText="Ctrl + Q">
<MenuItem.Icon>
- <Image Width="16" Source="Images/Queue_Small.png" />
+ <Image Width="16" Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Queue.png'}" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{x:Static Properties:Resources.MainView_ActivityLogMenu}" cal:Message.Attach="[Event Click] = [Action OpenLogWindow]" InputGestureText="Ctrl + L">
<MenuItem.Icon>
- <Image Width="16" Source="Images/Output_Small.png" />
+ <Image Width="16" Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Activity.png'}" />
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="{x:Static Properties:Resources.MainView_PreferencesMenu}" cal:Message.Attach="[Event Click] = [Action OpenOptionsWindow]">
<MenuItem.Icon>
- <Image Width="16" Source="Images/Pref_Small.png" />
+ <Image Width="16" Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Settings.png'}" />
</MenuItem.Icon>
</MenuItem>
</MenuItem>
@@ -170,7 +171,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
- Source="Images/Movies_small.png"/>
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Source.png'}"/>
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="{x:Static Properties:Resources.MainView_SourceOpen}"/>
@@ -182,7 +183,7 @@ <Button PreviewMouseLeftButtonDown="AddToQueue_PreviewMouseDown" ContextMenuService.IsEnabled="False" AutomationProperties.Name="{x:Static Properties:Resources.MainView_AddToQueue}">
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
- <Image Width="32" Height="32" SnapsToDevicePixels="True" Source="Images/AddToQueue_small.png" />
+ <Image Width="32" Height="32" SnapsToDevicePixels="True" Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='AddToQueue.png'}" />
<Label Margin="8,0,0,0" VerticalAlignment="Center" Content="{x:Static Properties:Resources.MainView_AddToQueue}" />
</StackPanel>
@@ -209,7 +210,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
- Source="Images/AddToQueue_small.png"/>
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='AddToQueue.png'}"/>
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="{x:Static Properties:Resources.MainView_AddSelection}"/>
@@ -223,7 +224,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
- Source="Images/AddToQueue_small.png"/>
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='AddToQueue.png'}"/>
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="{x:Static Properties:Resources.MainView_AddAll}"/>
@@ -284,7 +285,7 @@ <Image Width="32"
Height="32"
SnapsToDevicePixels="True"
- Source="Images/Queue_small.png"/>
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Queue.png'}"/>
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="{Binding QueueLabel, FallbackValue='{x:Static Properties:Resources.MainView_ShowQueue}'}"/>
@@ -296,7 +297,7 @@ <Image Width="32"
Height="32"
SnapsToDevicePixels="True"
- Source="Images/picture_small.png"/>
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Queue.png'}"/>
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="{x:Static Properties:Resources.MainView_ShowPreview}"/>
@@ -307,7 +308,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
- Source="Images/ActivityWindow_small.png"/>
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Activity2.png'}"/>
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="Activity Log"/>
@@ -319,7 +320,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
- Source="Images/Presets2.png"/>
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Presets2.png'}"/>
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="Presets"/>
@@ -721,7 +722,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="20"
Height="20"
- Source="Images/add.png"
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Add.png'}"
/>
<TextBlock Margin="2,0,0,0"
VerticalAlignment="Center"
@@ -737,7 +738,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="20"
Height="20"
- Source="Images/remove.png"
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Remove.png'}"
SnapsToDevicePixels="True"
/>
<TextBlock Margin="2,0,0,0"
@@ -755,7 +756,7 @@ <StackPanel Orientation="Horizontal">
<Image Width="20"
Height="20"
- Source="Images/Advanced.png"
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Advanced.png'}"
RenderOptions.BitmapScalingMode="HighQuality"
/>
<TextBlock Margin="2,0,0,0"
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml index 8ad81537e..bc4f0e447 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml @@ -34,6 +34,7 @@ <video:EncoderOptionsTooltipConverter x:Key="encoderOptionsTooltipConverter" />
<video:VideoOptionsTooltipConverter x:Key="videoOptionsTooltipConverter" />
<queue:PictureSettingsDescConveter x:Key="pictureSettingsDescConverter" />
+ <Converters:ThemeImageConverter x:Key="themeConverter" />
<Style x:Key="LongToolTipHolder" TargetType="FrameworkElement">
<Setter Property="ToolTipService.ShowDuration" Value="10000" />
@@ -64,7 +65,7 @@ <MenuItem>
<MenuItem.Header>
<StackPanel Height="32" Orientation="Horizontal">
- <Image Source="Images/Advanced.png" Width="20" Height="20" VerticalAlignment="Center" />
+ <Image Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Advanced.png'}" Width="20" Height="20" VerticalAlignment="Center" />
<TextBlock VerticalAlignment="Center"
Text="{x:Static Properties:Resources.QueueView_Options}" Margin="5,0,0,0" />
<Path Height="5"
@@ -163,7 +164,7 @@ <ContextMenu cal:Action.TargetWithoutContext="{Binding Path=PlacementTarget.Tag, RelativeSource={RelativeSource Self}}" Opened="ContextMenu_OnOpened">
<MenuItem Header="{x:Static Properties:Resources.QueueView_PlayMediaFile}" cal:Message.Attach="[Event Click] = [Action PlayFile]" />
<Separator />
- <MenuItem x:Name="RetryMenuItem" Header="{x:Static Properties:Resources.QueueView_Retry}" Click="QueueItem_Retry" />
+ <MenuItem x:Name="ResetMenuItem" Header="{x:Static Properties:Resources.QueueView_Reset}" Click="QueueItem_Retry" />
<MenuItem x:Name="DeleteMenuItem" Header="{x:Static Properties:Resources.QueueView_Delete}" Click="QueueItem_Delete" />
<Separator />
<MenuItem x:Name="EditMenuItem" Header="{x:Static Properties:Resources.QueueView_Edit}" Click="QueueItem_Edit" />
@@ -202,7 +203,7 @@ <Style TargetType="{x:Type Image}">
<Style.Triggers>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="Waiting">
- <Setter Property="Source" Value="Images/Movies.png" />
+ <Setter Property="Source" Value="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Source.png'}" />
</DataTrigger>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="In Progress">
<Setter Property="Source" Value="Images/Working0.png" />
@@ -340,13 +341,13 @@ </Style>
</StackPanel.Resources>
- <Button AutomationProperties.Name="{x:Static Properties:Resources.QueueView_Retry}" ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_ResetJobStatus}">
+ <Button AutomationProperties.Name="{x:Static Properties:Resources.QueueView_Reset}" ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_ResetJobStatus}">
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Width="20" Height="20" VerticalAlignment="Center" Margin="0,0,5,0"
- Source="Images/Refresh.ico">
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Refresh.png'}">
</Image>
- <TextBlock Text="{x:Static Properties:Resources.QueueView_Retry}" />
+ <TextBlock Text="{x:Static Properties:Resources.QueueView_Reset}" />
</StackPanel>
</Button.Content>
@@ -363,7 +364,7 @@ <Button.Content>
<StackPanel Orientation="Horizontal">
<Image Width="20" Margin="0,0,5,0" Height="20" VerticalAlignment="Center"
- Source="Images/options24.png">
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='New.png'}">
</Image>
<TextBlock Text="{x:Static Properties:Resources.QueueView_Edit}" />
</StackPanel>
@@ -377,30 +378,12 @@ </i:Interaction.Triggers>
</Button>
- <Button Margin="10,0,0,0" AutomationProperties.Name="{x:Static Properties:Resources.QueueView_Delete}" ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_DeleteJob}">
- <Button.Content>
- <StackPanel Orientation="Horizontal">
- <Image Width="20" Height="20" VerticalAlignment="Center" Margin="0,0,5,0"
- Source="Images/close64_dark.png">
- </Image>
- <TextBlock Text="{x:Static Properties:Resources.QueueView_Delete}" />
- </StackPanel>
- </Button.Content>
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="RemoveJob">
- <cal:Parameter Value="{Binding SelectedTask}" />
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
-
<Button x:Name="queueOptionsDropButton" Margin="10,0,0,0" Click="QueueOptionsDropButton_OnClick"
AutomationProperties.Name="{x:Static Properties:Resources.QueueView_Actions}" IsEnabled="{Binding CanPerformActionOnSource}">
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Width="20" Height="20" VerticalAlignment="Center" Margin="0,0,5,0"
- Source="Images/Advanced.png">
+ Source="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Advanced.png'}">
</Image>
<TextBlock Margin="0,0,5,0" Padding="0"
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs index aed7faf36..6ee87bed2 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs @@ -67,16 +67,16 @@ namespace HandBrakeWPF.Views }
// Handle menu state
- this.RetryMenuItem.Header = this.queueJobs.SelectedItems.Count > 1 ? Properties.Resources.QueueView_ResetSelectedJobs : Properties.Resources.QueueView_Retry;
+ this.ResetMenuItem.Header = this.queueJobs.SelectedItems.Count > 1 ? Properties.Resources.QueueView_ResetSelectedJobs : Properties.Resources.QueueView_Reset;
if (this.queueJobs.SelectedItems.Count > 1)
{
- this.RetryMenuItem.IsEnabled = false;
+ this.ResetMenuItem.IsEnabled = false;
foreach (QueueTask task in this.queueJobs.SelectedItems)
{
if (task.Status == QueueItemStatus.Error || task.Status == QueueItemStatus.Completed)
{
- this.RetryMenuItem.IsEnabled = true;
+ this.ResetMenuItem.IsEnabled = true;
break;
}
}
@@ -86,11 +86,11 @@ namespace HandBrakeWPF.Views var activeQueueTask = this.mouseActiveQueueTask;
if (activeQueueTask != null && (activeQueueTask.Status == QueueItemStatus.Error || activeQueueTask.Status == QueueItemStatus.Completed))
{
- this.RetryMenuItem.IsEnabled = true;
+ this.ResetMenuItem.IsEnabled = true;
}
else
{
- this.RetryMenuItem.IsEnabled = false;
+ this.ResetMenuItem.IsEnabled = false;
}
}
|