mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add subtext indicating whether backdrop is not available
This commit is contained in:
parent
a35fb34760
commit
6b6aaa14f4
3 changed files with 4 additions and 2 deletions
|
|
@ -196,6 +196,7 @@
|
|||
<system:String x:Key="Clock">Clock</system:String>
|
||||
<system:String x:Key="Date">Date</system:String>
|
||||
<system:String x:Key="BackdropType">Backdrop Type</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="BackdropTypesAcrylic">Acrylic</system:String>
|
||||
<system:String x:Key="BackdropTypesMica">Mica</system:String>
|
||||
|
|
|
|||
|
|
@ -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<Theme>();
|
||||
|
||||
|
|
|
|||
|
|
@ -468,7 +468,8 @@
|
|||
<cc:Card
|
||||
Title="{DynamicResource BackdropType}"
|
||||
Margin="0 0 0 0"
|
||||
Icon="">
|
||||
Icon=""
|
||||
Sub="{Binding BackdropSubText}">
|
||||
<ComboBox
|
||||
MinWidth="160"
|
||||
VerticalAlignment="Center"
|
||||
|
|
@ -478,7 +479,6 @@
|
|||
ItemsSource="{Binding BackdropTypesList}"
|
||||
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
|
||||
SelectedValuePath="Value" />
|
||||
<!-- ✅ 추가 -->
|
||||
</cc:Card>
|
||||
|
||||
<!-- Drop shadow effect -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue