Skip to content

Commit 6b6aaa1

Browse files
committed
Add subtext indicating whether backdrop is not available
1 parent a35fb34 commit 6b6aaa1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
<system:String x:Key="Clock">Clock</system:String>
197197
<system:String x:Key="Date">Date</system:String>
198198
<system:String x:Key="BackdropType">Backdrop Type</system:String>
199+
<system:String x:Key="BackdropTypeDisabledToolTip">Backdrop supported starting from Windows 11 build 22000 and above</system:String>
199200
<system:String x:Key="BackdropTypesNone">None</system:String>
200201
<system:String x:Key="BackdropTypesAcrylic">Acrylic</system:String>
201202
<system:String x:Key="BackdropTypesMica">Mica</system:String>

Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace Flow.Launcher.SettingPages.ViewModels;
2121
public partial class SettingsPaneThemeViewModel : BaseModel
2222
{
2323
private const string DefaultFont = "Segoe UI";
24+
public string BackdropSubText => !Win32Helper.IsBackdropSupported() ? App.API.GetTranslation("BackdropTypeDisabledToolTip") : "";
2425
public Settings Settings { get; }
2526
private readonly Theme _theme = Ioc.Default.GetRequiredService<Theme>();
2627

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@
468468
<cc:Card
469469
Title="{DynamicResource BackdropType}"
470470
Margin="0 0 0 0"
471-
Icon="&#xeb42;">
471+
Icon="&#xeb42;"
472+
Sub="{Binding BackdropSubText}">
472473
<ComboBox
473474
MinWidth="160"
474475
VerticalAlignment="Center"
@@ -478,7 +479,6 @@
478479
ItemsSource="{Binding BackdropTypesList}"
479480
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
480481
SelectedValuePath="Value" />
481-
<!-- ✅ 추가 -->
482482
</cc:Card>
483483

484484
<!-- Drop shadow effect -->

0 commit comments

Comments
 (0)