From 6b6aaa14f4302567b1bf2a858e96aaef69df4588 Mon Sep 17 00:00:00 2001 From: DB p Date: Mon, 31 Mar 2025 17:08:26 +0900 Subject: [PATCH] Add subtext indicating whether backdrop is not available --- Flow.Launcher/Languages/en.xaml | 1 + .../SettingPages/ViewModels/SettingsPaneThemeViewModel.cs | 1 + Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 7c96fe88d..44b82b372 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -196,6 +196,7 @@ Clock Date Backdrop Type + Backdrop supported starting from Windows 11 build 22000 and above None Acrylic Mica diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs index 53d70e8d5..6e2488fe1 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs @@ -21,6 +21,7 @@ namespace Flow.Launcher.SettingPages.ViewModels; public partial class SettingsPaneThemeViewModel : BaseModel { private const string DefaultFont = "Segoe UI"; + public string BackdropSubText => !Win32Helper.IsBackdropSupported() ? App.API.GetTranslation("BackdropTypeDisabledToolTip") : ""; public Settings Settings { get; } private readonly Theme _theme = Ioc.Default.GetRequiredService(); diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml index e63567ce5..49306cd2d 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml @@ -468,7 +468,8 @@ + Icon="" + Sub="{Binding BackdropSubText}"> -