Add Strings

This commit is contained in:
DB p 2025-03-11 12:50:37 +09:00
parent 1c79d51e27
commit ba02a3ca05
3 changed files with 24 additions and 20 deletions

View file

@ -140,12 +140,12 @@ namespace Flow.Launcher.Core.Resource
if (mainWindowSrc == null)
return;
//ParameterTypes.MARGINS margins = new ParameterTypes.MARGINS();
//margins.cxLeftWidth = -1;
//margins.cxRightWidth = -1;
//margins.cyTopHeight = -1;
//margins.cyBottomHeight = -1;
//Methods.ExtendFrame(mainWindowSrc.Handle, margins);
ParameterTypes.MARGINS margins = new ParameterTypes.MARGINS();
margins.cxLeftWidth = -1;
margins.cxRightWidth = -1;
margins.cyTopHeight = -1;
margins.cyBottomHeight = -1;
Methods.ExtendFrame(mainWindowSrc.Handle, margins);
// Remove OS minimizing/maximizing animation
// Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_TRANSITIONS_FORCEDISABLED, 3);
@ -578,8 +578,8 @@ namespace Flow.Launcher.Core.Resource
}
BlurEnabled = Win32Helper.IsBlurTheme();
//if (_settings.UseDropShadowEffect)
// AddDropShadowEffectToCurrentTheme();
if (_settings.UseDropShadowEffect)
AddDropShadowEffectToCurrentTheme();

View file

@ -106,6 +106,10 @@
<system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String>
<system:String x:Key="shadowEffectRestart">The shadow effect transition takes effect after the program restarts</system:String>
<system:String x:Key="shadowEffectNotAllowedBlur">Translucent themes cannot turn off shadow effects</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>
<system:String x:Key="BackdropTypesMicaAlt">Mica Alt</system:String>
<!-- Setting Plugin -->
<system:String x:Key="searchplugin">Search Plugin</system:String>

View file

@ -39,8 +39,8 @@ public partial class SettingsPaneThemeViewModel : BaseModel
if (ThemeManager.Instance.BlurEnabled && Settings.UseDropShadowEffect == false)
DropShadowEffect = true;
//ThemeManager.Instance.RefreshFrame();
ThemeManager.Instance.SetBlurForWindow();
ThemeManager.Instance.RefreshFrame();
//uThemeManager.Instance.SetBlurForWindow();
}
}
@ -183,17 +183,17 @@ public partial class SettingsPaneThemeViewModel : BaseModel
{
public void ApplyBackdrop()
{
IntPtr hWnd = new WindowInteropHelper(Application.Current.MainWindow).Handle;
if (hWnd == IntPtr.Zero)
return;
//IntPtr hWnd = new WindowInteropHelper(Application.Current.MainWindow).Handle;
//if (hWnd == IntPtr.Zero)
// return;
int backdropValue = Value switch
{
BackdropTypes.Acrylic => 3, // ✅ Acrylic (DWM_SYSTEMBACKDROP_TYPE = 3)
BackdropTypes.Mica => 2, // ✅ Mica (DWM_SYSTEMBACKDROP_TYPE = 2)
BackdropTypes.MicaAlt => 4, // ✅ MicaAlt (DWM_SYSTEMBACKDROP_TYPE = 4)
_ => 0 // ✅ None (DWM_SYSTEMBACKDROP_TYPE = 0)
};
//int backdropValue = Value switch
//{
// BackdropTypes.Acrylic => 3, // ✅ Acrylic (DWM_SYSTEMBACKDROP_TYPE = 3)
// BackdropTypes.Mica => 2, // ✅ Mica (DWM_SYSTEMBACKDROP_TYPE = 2)
// BackdropTypes.MicaAlt => 4, // ✅ MicaAlt (DWM_SYSTEMBACKDROP_TYPE = 4)
// _ => 0 // ✅ None (DWM_SYSTEMBACKDROP_TYPE = 0)
//};
ThemeManager.Instance.SetBlurForWindow();
//Methods.SetWindowAttribute(hWnd, ParameterTypes.DWMWINDOWATTRIBUTE.DWMWA_SYSTEMBACKDROP_TYPE, backdropValue);
}