Repository navigation
Is it possible to use a background image in a theme ? #4755
|
Hi ! I'm Is there a way to set an image as the background of the launcher window in a custom theme? I’m on 2.1.4 and couldn’t find anything about it in the docs. Thanks for the help ! |
Replies: 1 comment 1 reply
|
There's no setting for it, but a custom theme can do it. A theme file is a WPF resource dictionary, and the launcher window is a <Style
x:Key="WindowBorderStyle"
BasedOn="{StaticResource BaseWindowBorderStyle}"
TargetType="{x:Type Border}">
<Setter Property="Background">
<Setter.Value>
<ImageBrush ImageSource="C:\Users\you\Pictures\flow-bg.png" Stretch="UniformToFill" />
</Setter.Value>
</Setter>
</Style>Easiest start: copy a non-blur theme like Darker.xaml into the folder you get from Settings > Theme > Open Theme Folder, rename it, and swap its Two catches in 2.1.4:
I worked this out from the 2.1.4 source and haven't tried it on a Windows machine yet. |
There's no setting for it, but a custom theme can do it. A theme file is a WPF resource dictionary, and the launcher window is a
Borderstyled byWindowBorderStyle(MainWindow.xaml). ItsBackgroundsetter takes any brush, so you can give it anImageBrushinstead of a color:Easiest start: copy a non-blur theme like Darker.xaml into the folder you get from Settings > …