Skip to content

Commit f00f98c

Browse files
committed
Add Proprerty for blur themes
1 parent 5b81cf5 commit f00f98c

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ public void SetCornerForWindow()
168168
{
169169
DWM_WINDOW_CORNER_PREFERENCE preference = cornerMode switch
170170
{
171-
"DONOTROUND" => DWM_WINDOW_CORNER_PREFERENCE.DoNotRound,
172-
"ROUND" => DWM_WINDOW_CORNER_PREFERENCE.Round,
173-
"ROUNDSMALL" => DWM_WINDOW_CORNER_PREFERENCE.RoundSmall,
171+
"DoNotRound" => DWM_WINDOW_CORNER_PREFERENCE.DoNotRound,
172+
"Round" => DWM_WINDOW_CORNER_PREFERENCE.Round,
173+
"RoundSmall" => DWM_WINDOW_CORNER_PREFERENCE.RoundSmall,
174174
_ => DWM_WINDOW_CORNER_PREFERENCE.Default,
175175
};
176176

@@ -333,13 +333,13 @@ public void ThemeModeColor(string Mode)
333333
}
334334
else if (Mode == "Dark")
335335
{
336-
mainWindow.Background = new SolidColorBrush(Colors.Green);
336+
mainWindow.Background = new SolidColorBrush(darkBG);
337337
Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_USE_IMMERSIVE_DARK_MODE, 1);
338338
return;
339339
}
340340
else if (Mode == "Light")
341341
{
342-
mainWindow.Background = new SolidColorBrush(Colors.Yellow);
342+
mainWindow.Background = new SolidColorBrush(lightBG);
343343
Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_USE_IMMERSIVE_DARK_MODE, 0);
344344
return;
345345
}

Flow.Launcher/Themes/BlurBlack Darker.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
</ResourceDictionary.MergedDictionaries>
1313

1414
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
15+
<system:String x:Key="BlurMode">Dark</system:String>
16+
<system:String x:Key="CornerType">DoNotRound</system:String>
17+
<Color x:Key="lightBG">#C7000000</Color>
18+
<Color x:Key="darkBG">#C7000000</Color>
1519

1620
<Style x:Key="WindowRadius" TargetType="{x:Type Border}">
1721
<Setter Property="CornerRadius" Value="0" />

Flow.Launcher/Themes/BlurBlack.xaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
<ResourceDictionary Source="pack://application:,,,/Themes/Base.xaml" />
1212
</ResourceDictionary.MergedDictionaries>
1313
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
14-
<system:String x:Key="BlurMode">Auto</system:String>
14+
<system:String x:Key="BlurMode">Dark</system:String>
15+
<system:String x:Key="CornerType">DoNotRound</system:String>
16+
<Color x:Key="lightBG">#B0000000</Color>
17+
<Color x:Key="darkBG">#B6000000</Color>
18+
1519
<Style x:Key="WindowRadius" TargetType="{x:Type Border}">
1620
<Setter Property="CornerRadius" Value="0" />
1721
</Style>

Flow.Launcher/Themes/BlurWhite.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
<ResourceDictionary Source="pack://application:,,,/Themes/Base.xaml" />
1212
</ResourceDictionary.MergedDictionaries>
1313
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
14-
<system:String x:Key="BlurMode">light</system:String>
14+
<system:String x:Key="BlurMode">Light</system:String>
15+
<system:String x:Key="CornerType">DoNotRound</system:String>
1516
<Color x:Key="lightBG">#BFFAFAFA</Color>
17+
<Color x:Key="darkBG">#BFFAFAFA</Color>
1618
<Style
1719
x:Key="ItemGlyph"
1820
BasedOn="{StaticResource BaseGlyphStyle}"

0 commit comments

Comments
 (0)