From 20b0db3f30a1a89f83b40634647d9759d24c4fc3 Mon Sep 17 00:00:00 2001 From: DB p Date: Sun, 2 Jun 2024 22:42:40 +0900 Subject: [PATCH] - Change BlurAmount to Bool - Adjust Theme List layout --- Flow.Launcher.Core/Resource/Theme.cs | 8 ++--- .../SettingPages/Views/SettingsPaneTheme.xaml | 33 +++++++++++++------ 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/Flow.Launcher.Core/Resource/Theme.cs b/Flow.Launcher.Core/Resource/Theme.cs index 1c7485a9c..a442eae64 100644 --- a/Flow.Launcher.Core/Resource/Theme.cs +++ b/Flow.Launcher.Core/Resource/Theme.cs @@ -262,12 +262,12 @@ namespace Flow.Launcher.Core.Resource ) }; } - else if (line.StartsWith("BlurAmount:", StringComparison.OrdinalIgnoreCase)) + else if (line.StartsWith("IsBlur:", StringComparison.OrdinalIgnoreCase)) { themeData = themeData with { - BlurAmount = int.Parse( - line.Remove(0, "BlurAmount:".Length).Trim() + IsBlur = bool.Parse( + line.Remove(0, "IsBlur:".Length).Trim() ) }; } @@ -452,6 +452,6 @@ namespace Flow.Launcher.Core.Resource } #endregion - public record ThemeData(string FileNameWithoutExtension, string Name, bool? IsDark = null, int? BlurAmount = null); + public record ThemeData(string FileNameWithoutExtension, string Name, bool? IsDark = null, bool? IsBlur = null); } } diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml index 0c89ea195..99916491a 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml @@ -467,16 +467,29 @@ Width="Auto" Height="34" Margin="0"> - + + + + + +