mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove extra code
This commit is contained in:
parent
b2f8ad9fb9
commit
84cd1a84ac
1 changed files with 9 additions and 32 deletions
|
|
@ -16,7 +16,7 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
|
||||
#region Theme Selection
|
||||
|
||||
// Theme select codes from SettingsPaneThemeViewModel.cs
|
||||
// Theme select codes simplified from SettingsPaneThemeViewModel.cs
|
||||
|
||||
private Theme.ThemeData _selectedTheme;
|
||||
private Theme.ThemeData SelectedTheme
|
||||
|
|
@ -28,36 +28,15 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
_theme.ChangeTheme(value.FileNameWithoutExtension);
|
||||
|
||||
if (_theme.BlurEnabled && _settings.UseDropShadowEffect)
|
||||
DropShadowEffect = false;
|
||||
{
|
||||
_theme.RemoveDropShadowEffectFromCurrentTheme();
|
||||
_settings.UseDropShadowEffect = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private List<Theme.ThemeData> Themes => _theme.LoadAvailableThemes();
|
||||
|
||||
private bool DropShadowEffect
|
||||
{
|
||||
get => _settings.UseDropShadowEffect;
|
||||
set
|
||||
{
|
||||
if (_theme.BlurEnabled && value)
|
||||
{
|
||||
_context.API.ShowMsgBox(_context.API.GetTranslation("shadowEffectNotAllowed"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (value)
|
||||
{
|
||||
_theme.AddDropShadowEffectToCurrentTheme();
|
||||
}
|
||||
else
|
||||
{
|
||||
_theme.RemoveDropShadowEffectFromCurrentTheme();
|
||||
}
|
||||
|
||||
_settings.UseDropShadowEffect = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public ThemeSelector(PluginInitContext context)
|
||||
|
|
@ -107,14 +86,12 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
if (theme.IsDark == true)
|
||||
{
|
||||
description += _context.API.GetTranslation("TypeIsDarkToolTip");
|
||||
if (theme.HasBlur == true)
|
||||
{
|
||||
description += "";
|
||||
description += _context.API.GetTranslation("TypeHasBlurToolTip");
|
||||
}
|
||||
}
|
||||
else if (theme.HasBlur == true)
|
||||
|
||||
if (theme.HasBlur == true)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(description))
|
||||
description += " ";
|
||||
description += _context.API.GetTranslation("TypeHasBlurToolTip");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue