Skip to content

Commit 57d6720

Browse files
committed
[Launcher] Hack for the background image in light theme variant
1 parent ac933c6 commit 57d6720

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

sources/launcher/Stride.Launcher/Views/MainView.axaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,26 @@
1212
mc:Ignorable="d" d:DesignWidth="1024" d:DesignHeight="768"
1313
x:Class="Stride.Launcher.Views.MainView"
1414
x:DataType="vm:MainViewModel">
15+
<UserControl.Resources>
16+
<ResourceDictionary>
17+
<ResourceDictionary.ThemeDictionaries>
18+
<ResourceDictionary x:Key="Default">
19+
<ImageBrush x:Key="ImageBackground"/>
20+
</ResourceDictionary>
21+
<ResourceDictionary x:Key="Dark">
22+
<ImageBrush x:Key="ImageBackground"
23+
Source="/Assets/Images/robot.png" Stretch="UniformToFill"/>
24+
</ResourceDictionary>
25+
<ResourceDictionary x:Key="Light">
26+
<!-- FIXME xplat-editor find a background image working better with the light variant -->
27+
<ImageBrush x:Key="ImageBackground"
28+
Source="/Assets/Images/robot.png" Stretch="UniformToFill" Opacity="0.4"/>
29+
</ResourceDictionary>
30+
</ResourceDictionary.ThemeDictionaries>
31+
</ResourceDictionary>
32+
</UserControl.Resources>
1533
<UserControl.Background>
16-
<ImageBrush Source="/Assets/Images/robot.png" Stretch="UniformToFill"/>
34+
<DynamicResource ResourceKey="ImageBackground"/>
1735
</UserControl.Background>
1836

1937
<Grid>

0 commit comments

Comments
 (0)