Skip to content

Commit

Permalink
Add background color for all images using knownmoniker (microsoft#6659)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo authored Aug 9, 2021
1 parent 31b85a3 commit ffb1da2
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions Python/Product/EnvironmentsList/images/images.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
<Setter Property="theming:ImageThemingUtilities.ImageBackgroundColor"
Value="{Binding Background,RelativeSource={RelativeSource Self},Converter={StaticResource BrushToColorConverter}}" />
</Style>

<Style x:Key="BaseImage" TargetType="Control">
<Setter Property="theming:ImageThemingUtilities.ImageBackgroundColor"
Value="{Binding Background,RelativeSource={RelativeSource Self},Converter={StaticResource BrushToColorConverter}}" />
</Style>

<Style x:Key="SettingsImage" TargetType="Control">
<Style x:Key="SettingsImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -23,7 +28,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="FolderClosedImage" TargetType="Control">
<Style x:Key="FolderClosedImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -34,7 +39,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="FolderOpenedImage" TargetType="Control">
<Style x:Key="FolderOpenedImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -45,7 +50,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="CheckMarkImage" TargetType="Control">
<Style x:Key="CheckMarkImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -56,7 +61,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="ExclamationPointImage" TargetType="Control">
<Style x:Key="ExclamationPointImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -67,7 +72,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="RefreshImage" TargetType="Control">
<Style x:Key="RefreshImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -78,7 +83,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="InteractiveWindowImage" TargetType="Control">
<Style x:Key="InteractiveWindowImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -93,8 +98,8 @@
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="PythonApplicationImage" TargetType="Control">

<Style x:Key="PythonApplicationImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -105,7 +110,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="PythonConsoleApplicationImage" TargetType="Control">
<Style x:Key="PythonConsoleApplicationImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -116,7 +121,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="PythonEnvironmentImage" TargetType="Control">
<Style x:Key="PythonEnvironmentImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -128,7 +133,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="ActiveEnvironmentImage" TargetType="Control">
<Style x:Key="ActiveEnvironmentImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -139,7 +144,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="PythonPackageImage" TargetType="Control">
<Style x:Key="PythonPackageImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -150,7 +155,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="ConsoleImage" TargetType="Control">
<Style x:Key="ConsoleImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -161,7 +166,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="CheckBoxCheckedImage" TargetType="Control">
<Style x:Key="CheckBoxCheckedImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -171,7 +176,7 @@
</Setter>
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style x:Key="CheckBoxUncheckedImage" TargetType="Control">
<Style x:Key="CheckBoxUncheckedImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -182,7 +187,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="HelpImage" TargetType="Control">
<Style x:Key="HelpImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -193,7 +198,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="BrokenEnvironmentImage" TargetType="Control">
<Style x:Key="BrokenEnvironmentImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand All @@ -204,7 +209,7 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<Style x:Key="DeleteFolderImage" TargetType="Control">
<Style x:Key="DeleteFolderImage" TargetType="Control" BasedOn="{StaticResource BaseImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand Down

0 comments on commit ffb1da2

Please sign in to comment.