Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
H
HandBrake
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Frederick Ding
HandBrake
Commits
482edae6
Unverified
Commit
482edae6
authored
Aug 03, 2019
by
sr55
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WinGui: Make the Dark Theme Windows 10 only.
parent
8d44138c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
4 deletions
+6
-4
win/CS/HandBrakeWPF/App.xaml.cs
win/CS/HandBrakeWPF/App.xaml.cs
+1
-1
win/CS/HandBrakeWPF/Properties/Resources.Designer.cs
win/CS/HandBrakeWPF/Properties/Resources.Designer.cs
+1
-1
win/CS/HandBrakeWPF/Properties/Resources.resx
win/CS/HandBrakeWPF/Properties/Resources.resx
+1
-1
win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+2
-0
win/CS/HandBrakeWPF/Views/OptionsView.xaml
win/CS/HandBrakeWPF/Views/OptionsView.xaml
+1
-1
No files found.
win/CS/HandBrakeWPF/App.xaml.cs
View file @
482edae6
...
@@ -122,7 +122,7 @@ namespace HandBrakeWPF
...
@@ -122,7 +122,7 @@ namespace HandBrakeWPF
}
}
bool
useDarkTheme
=
userSettingService
.
GetUserSetting
<
bool
>(
UserSettingConstants
.
UseDarkTheme
);
bool
useDarkTheme
=
userSettingService
.
GetUserSetting
<
bool
>(
UserSettingConstants
.
UseDarkTheme
);
if
(
useDarkTheme
)
if
(
useDarkTheme
&&
SystemInfo
.
IsWindows10
()
)
{
{
ResourceDictionary
darkTheme
=
new
ResourceDictionary
();
ResourceDictionary
darkTheme
=
new
ResourceDictionary
();
darkTheme
.
Source
=
new
Uri
(
"Themes/Dark.xaml"
,
UriKind
.
Relative
);
darkTheme
.
Source
=
new
Uri
(
"Themes/Dark.xaml"
,
UriKind
.
Relative
);
...
...
win/CS/HandBrakeWPF/Properties/Resources.Designer.cs
View file @
482edae6
...
@@ -2633,7 +2633,7 @@ namespace HandBrakeWPF.Properties {
...
@@ -2633,7 +2633,7 @@ namespace HandBrakeWPF.Properties {
}
}
/// <summary>
/// <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>
/// </summary>
public
static
string
Options_DarkTheme
{
public
static
string
Options_DarkTheme
{
get
{
get
{
...
...
win/CS/HandBrakeWPF/Properties/Resources.resx
View file @
482edae6
...
@@ -1992,7 +1992,7 @@ Where supported, any user presets will have been imported.</value>
...
@@ -1992,7 +1992,7 @@ Where supported, any user presets will have been imported.</value>
<value>
Export Queue (CLI Only)
</value>
<value>
Export Queue (CLI Only)
</value>
</data>
</data>
<data
name=
"Options_DarkTheme"
xml:space=
"preserve"
>
<data
name=
"Options_DarkTheme"
xml:space=
"preserve"
>
<value>
Use the Dark Theme. (Requires Restart
) (THIS IS AN EARLY PREVIEW. IT IS NOT YET COMPLETE!
)
</value>
<value>
Use the Dark Theme. (Requires Restart
, Windows 10 only
)
</value>
</data>
</data>
<data
name=
"QueueView_NotAvailable"
xml:space=
"preserve"
>
<data
name=
"QueueView_NotAvailable"
xml:space=
"preserve"
>
<value>
Not Available
</value>
<value>
Not Available
</value>
...
...
win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
View file @
482edae6
...
@@ -190,6 +190,8 @@ namespace HandBrakeWPF.ViewModels
...
@@ -190,6 +190,8 @@ namespace HandBrakeWPF.ViewModels
}
}
}
}
public
bool
IsWindows10
=>
HandBrakeWPF
.
Utilities
.
SystemInfo
.
IsWindows10
();
#
region
General
#
region
General
public
BindingList
<
InterfaceLanguage
>
InterfaceLanguages
public
BindingList
<
InterfaceLanguage
>
InterfaceLanguages
...
...
win/CS/HandBrakeWPF/Views/OptionsView.xaml
View file @
482edae6
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
</StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="20,5,0,0">
<StackPanel Orientation="Vertical" Margin="20,5,0,0">
<CheckBox Content="{x:Static Properties:Resources.Options_DarkTheme}" IsChecked="{Binding UseDarkTheme}" />
<CheckBox Content="{x:Static Properties:Resources.Options_DarkTheme}" Is
Enabled="{Binding IsWindows10}" Is
Checked="{Binding UseDarkTheme}" />
<CheckBox Content="{x:Static Properties:Resources.Options_MinimiseTray}" IsChecked="{Binding MinimiseToTray}" />
<CheckBox Content="{x:Static Properties:Resources.Options_MinimiseTray}" IsChecked="{Binding MinimiseToTray}" />
<CheckBox Content="{x:Static Properties:Resources.Options_ClearCompleted}" IsChecked="{Binding ClearQueueOnEncodeCompleted}" />
<CheckBox Content="{x:Static Properties:Resources.Options_ClearCompleted}" IsChecked="{Binding ClearQueueOnEncodeCompleted}" />
<CheckBox Content="{x:Static Properties:Resources.OptionsView_ShowStatusInTitleBar}" IsChecked="{Binding ShowStatusInTitleBar}" />
<CheckBox Content="{x:Static Properties:Resources.OptionsView_ShowStatusInTitleBar}" IsChecked="{Binding ShowStatusInTitleBar}" />
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment