Skip to content

Commit 0797527

Browse files
authored
1 parent 4039b3b commit 0797527

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
305 KB
Loading

WinUIGallery/Controls/HomePageHeaderImage.xaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,20 @@
2020
<GradientStop Offset="0.0" Color="#CED8E4" />
2121
<GradientStop Offset="1.0" Color="#D5DBE3" />
2222
</LinearGradientBrush>
23+
<x:Double x:Key="ImageOpacity">0.9</x:Double>
2324
</ResourceDictionary>
2425
<ResourceDictionary x:Key="Dark">
25-
<SolidColorBrush x:Key="BackgroundGradient" Color="Black" />
26+
<SolidColorBrush x:Key="BackgroundGradient" Color="#020B20" />
27+
<x:Double x:Key="ImageOpacity">0.8</x:Double>
2628
</ResourceDictionary>
2729
<ResourceDictionary x:Key="HighContrast">
2830
<SolidColorBrush x:Key="BackgroundGradient" Color="Black" />
31+
<x:Double x:Key="ImageOpacity">0.8</x:Double>
2932
</ResourceDictionary>
3033
</ResourceDictionary.ThemeDictionaries>
3134
</ResourceDictionary>
3235
</UserControl.Resources>
33-
<Grid>
36+
<Grid Margin="0,-100,0,0">
3437
<Grid
3538
x:Name="ImageGrid"
3639
Background="{ThemeResource BackgroundGradient}"
@@ -39,13 +42,14 @@
3942
x:Name="HeroImage"
4043
toolkit:VisualExtensions.NormalizedCenterPoint="0.5"
4144
ImageOpened="OnImageOpened"
45+
Opacity="{ThemeResource ImageOpacity}"
4246
Source="/Assets/GalleryHeaderImage.png"
4347
Stretch="UniformToFill" />
4448

4549
<Image
4650
x:Name="HeroOverlayImage"
4751
toolkit:VisualExtensions.NormalizedCenterPoint="0.5"
48-
Opacity="0.5"
52+
Opacity="{ThemeResource ImageOpacity}"
4953
Source="/Assets/GalleryHeaderImage.png"
5054
Stretch="UniformToFill" />
5155

0 commit comments

Comments
 (0)