Adjust backdrop info

This commit is contained in:
DB p 2025-04-12 17:05:54 +09:00
parent fbe6e100e7
commit 49e00555fa
3 changed files with 14 additions and 3 deletions

View file

@ -226,7 +226,7 @@
<system:String x:Key="Clock">Clock</system:String> <system:String x:Key="Clock">Clock</system:String>
<system:String x:Key="Date">Date</system:String> <system:String x:Key="Date">Date</system:String>
<system:String x:Key="BackdropType">Backdrop Type</system:String> <system:String x:Key="BackdropType">Backdrop Type</system:String>
<system:String x:Key="BackdropTypeToolTip">You can configure the type of backdrop effect. Please note that it will not be reflected in the preview.</system:String> <system:String x:Key="BackdropInfo">The backdrop effect is not applied in the preview.</system:String>
<system:String x:Key="BackdropTypeDisabledToolTip">Backdrop supported starting from Windows 11 build 22000 and above</system:String> <system:String x:Key="BackdropTypeDisabledToolTip">Backdrop supported starting from Windows 11 build 22000 and above</system:String>
<system:String x:Key="BackdropTypesNone">None</system:String> <system:String x:Key="BackdropTypesNone">None</system:String>
<system:String x:Key="BackdropTypesAcrylic">Acrylic</system:String> <system:String x:Key="BackdropTypesAcrylic">Acrylic</system:String>

View file

@ -23,7 +23,7 @@ namespace Flow.Launcher.SettingPages.ViewModels;
public partial class SettingsPaneThemeViewModel : BaseModel public partial class SettingsPaneThemeViewModel : BaseModel
{ {
private string DefaultFont = Settings.GetSystemDefaultFont(); private string DefaultFont = Settings.GetSystemDefaultFont();
public string BackdropSubText => !Win32Helper.IsBackdropSupported() ? App.API.GetTranslation("BackdropTypeDisabledToolTip") : App.API.GetTranslation("BackdropTypeToolTip"); public string BackdropSubText => !Win32Helper.IsBackdropSupported() ? App.API.GetTranslation("BackdropTypeDisabledToolTip") : "";
public Settings Settings { get; } public Settings Settings { get; }
private readonly Theme _theme = Ioc.Default.GetRequiredService<Theme>(); private readonly Theme _theme = Ioc.Default.GetRequiredService<Theme>();

View file

@ -305,7 +305,7 @@
<StackPanel VerticalAlignment="Center" DockPanel.Dock="Left"> <StackPanel VerticalAlignment="Center" DockPanel.Dock="Left">
<Border <Border
Width="400" Width="400"
Margin="40 30 0 30" Margin="40 30 0 10"
SnapsToDevicePixels="True" SnapsToDevicePixels="True"
Style="{DynamicResource PreviewWindowBorderStyle}"> Style="{DynamicResource PreviewWindowBorderStyle}">
<Border BorderThickness="0" Style="{DynamicResource WindowRadius}"> <Border BorderThickness="0" Style="{DynamicResource WindowRadius}">
@ -370,6 +370,17 @@
</Grid> </Grid>
</Border> </Border>
</Border> </Border>
<Border
Margin="0 0 0 20"
Padding="8 4 8 4"
HorizontalAlignment="Center"
Background="#89000000"
CornerRadius="4">
<TextBlock
FontSize="10"
Foreground="#62FFFFFF"
Text="{DynamicResource BackdropInfo}" />
</Border>
</StackPanel> </StackPanel>
</DockPanel> </DockPanel>
</Border> </Border>