Skip to content

Commit

Permalink
[UX] Updated header image (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
niels9001 authored Mar 4, 2024
1 parent 4039b3b commit 0797527
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Binary file modified WinUIGallery/Assets/GalleryHeaderImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions WinUIGallery/Controls/HomePageHeaderImage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@
<GradientStop Offset="0.0" Color="#CED8E4" />
<GradientStop Offset="1.0" Color="#D5DBE3" />
</LinearGradientBrush>
<x:Double x:Key="ImageOpacity">0.9</x:Double>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="BackgroundGradient" Color="Black" />
<SolidColorBrush x:Key="BackgroundGradient" Color="#020B20" />
<x:Double x:Key="ImageOpacity">0.8</x:Double>
</ResourceDictionary>
<ResourceDictionary x:Key="HighContrast">
<SolidColorBrush x:Key="BackgroundGradient" Color="Black" />
<x:Double x:Key="ImageOpacity">0.8</x:Double>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid Margin="0,-100,0,0">
<Grid
x:Name="ImageGrid"
Background="{ThemeResource BackgroundGradient}"
Expand All @@ -39,13 +42,14 @@
x:Name="HeroImage"
toolkit:VisualExtensions.NormalizedCenterPoint="0.5"
ImageOpened="OnImageOpened"
Opacity="{ThemeResource ImageOpacity}"
Source="/Assets/GalleryHeaderImage.png"
Stretch="UniformToFill" />

<Image
x:Name="HeroOverlayImage"
toolkit:VisualExtensions.NormalizedCenterPoint="0.5"
Opacity="0.5"
Opacity="{ThemeResource ImageOpacity}"
Source="/Assets/GalleryHeaderImage.png"
Stretch="UniformToFill" />

Expand Down

0 comments on commit 0797527

Please sign in to comment.