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/Controls/SourceSelection.xaml | |
parent | 851f6ca16f4d50b87427501bd4647fe695057583 (diff) |
WinGui: Further work on the new Dark Theme. Mostly around icons.
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls/SourceSelection.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/SourceSelection.xaml | 7 |
1 files changed, 4 insertions, 3 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" />
|