diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs index 89f4fe15c..5e8669450 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; +using System.Security.Policy; using System.Windows; using System.Windows.Media; using System.Windows.Media.Imaging; @@ -181,12 +182,23 @@ public partial class SettingsPaneThemeViewModel : BaseModel return speeds; } } - public bool UseSound { get => Settings.UseSound; set => Settings.UseSound = value; } + public bool CheckMediaPlayer + { + get + { + if (Settings.WMPInstalled) + { + return true; + } + else { return false; } + } + set { } + } public double SoundEffectVolume { diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml index 3b581767c..c93d1328c 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml @@ -4,12 +4,12 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cc="clr-namespace:Flow.Launcher.Resources.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:ext="clr-namespace:Flow.Launcher.Resources.MarkupExtensions" xmlns:flowlauncher="clr-namespace:Flow.Launcher" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ui="http://schemas.modernwpf.com/2019" xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure" xmlns:viewModels="clr-namespace:Flow.Launcher.SettingPages.ViewModels" - xmlns:ext="clr-namespace:Flow.Launcher.Resources.MarkupExtensions" Title="Theme" d:DataContext="{d:DesignInstance viewModels:SettingsPaneThemeViewModel}" d:DesignHeight="450" @@ -25,22 +25,22 @@ - + - + - + - + - + - + - + + Margin="0,4,0,0" + Icon="" + Sub="{DynamicResource shadowEffectCPUUsage}"> - + - + @@ -179,7 +179,7 @@ Margin="0" Padding="0" HorizontalAlignment="Stretch" - BorderThickness="1 0 1 1" + BorderThickness="1,0,1,1" CornerRadius="0 0 5 5" Style="{DynamicResource SettingGroupBox}">