}\r
\r
bool useDarkTheme = userSettingService.GetUserSetting<bool>(UserSettingConstants.UseDarkTheme);\r
- if (useDarkTheme)\r
+ if (useDarkTheme && SystemInfo.IsWindows10())\r
{\r
ResourceDictionary darkTheme = new ResourceDictionary();\r
darkTheme.Source = new Uri("Themes/Dark.xaml", UriKind.Relative);\r
}
/// <summary>
- /// Looks up a localized string similar to Use the Dark Theme. (Requires Restart) (THIS IS AN EARLY PREVIEW. IT IS NOT YET COMPLETE!).
+ /// Looks up a localized string similar to Use the Dark Theme. (Requires Restart, Windows 10 only).
/// </summary>
public static string Options_DarkTheme {
get {
<value>Export Queue (CLI Only)</value>\r
</data>\r
<data name="Options_DarkTheme" xml:space="preserve">\r
- <value>Use the Dark Theme. (Requires Restart) (THIS IS AN EARLY PREVIEW. IT IS NOT YET COMPLETE!)</value>\r
+ <value>Use the Dark Theme. (Requires Restart, Windows 10 only)</value>\r
</data>\r
<data name="QueueView_NotAvailable" xml:space="preserve">\r
<value>Not Available</value>\r
}\r
}\r
\r
+ public bool IsWindows10 => HandBrakeWPF.Utilities.SystemInfo.IsWindows10();\r
+\r
#region General\r
\r
public BindingList<InterfaceLanguage> InterfaceLanguages\r
</StackPanel>\r
\r
<StackPanel Orientation="Vertical" Margin="20,5,0,0">\r
- <CheckBox Content="{x:Static Properties:Resources.Options_DarkTheme}" IsChecked="{Binding UseDarkTheme}" />\r
+ <CheckBox Content="{x:Static Properties:Resources.Options_DarkTheme}" IsEnabled="{Binding IsWindows10}" IsChecked="{Binding UseDarkTheme}" />\r
<CheckBox Content="{x:Static Properties:Resources.Options_MinimiseTray}" IsChecked="{Binding MinimiseToTray}" />\r
<CheckBox Content="{x:Static Properties:Resources.Options_ClearCompleted}" IsChecked="{Binding ClearQueueOnEncodeCompleted}" />\r
<CheckBox Content="{x:Static Properties:Resources.OptionsView_ShowStatusInTitleBar}" IsChecked="{Binding ShowStatusInTitleBar}" />\r