Skip to content

Commit ba02a3c

Browse files
committed
Add Strings
1 parent 1c79d51 commit ba02a3c

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ public void RefreshFrame()
140140
if (mainWindowSrc == null)
141141
return;
142142

143-
//ParameterTypes.MARGINS margins = new ParameterTypes.MARGINS();
144-
//margins.cxLeftWidth = -1;
145-
//margins.cxRightWidth = -1;
146-
//margins.cyTopHeight = -1;
147-
//margins.cyBottomHeight = -1;
148-
//Methods.ExtendFrame(mainWindowSrc.Handle, margins);
143+
ParameterTypes.MARGINS margins = new ParameterTypes.MARGINS();
144+
margins.cxLeftWidth = -1;
145+
margins.cxRightWidth = -1;
146+
margins.cyTopHeight = -1;
147+
margins.cyBottomHeight = -1;
148+
Methods.ExtendFrame(mainWindowSrc.Handle, margins);
149149

150150
// Remove OS minimizing/maximizing animation
151151
// Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_TRANSITIONS_FORCEDISABLED, 3);
@@ -578,8 +578,8 @@ public bool ChangeTheme(string theme)
578578
}
579579

580580
BlurEnabled = Win32Helper.IsBlurTheme();
581-
//if (_settings.UseDropShadowEffect)
582-
// AddDropShadowEffectToCurrentTheme();
581+
if (_settings.UseDropShadowEffect)
582+
AddDropShadowEffectToCurrentTheme();
583583

584584

585585

Flow.Launcher/Languages/en.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@
106106
<system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String>
107107
<system:String x:Key="shadowEffectRestart">The shadow effect transition takes effect after the program restarts</system:String>
108108
<system:String x:Key="shadowEffectNotAllowedBlur">Translucent themes cannot turn off shadow effects</system:String>
109+
<system:String x:Key="BackdropTypesNone">None</system:String>
110+
<system:String x:Key="BackdropTypesAcrylic">Acrylic</system:String>
111+
<system:String x:Key="BackdropTypesMica">Mica</system:String>
112+
<system:String x:Key="BackdropTypesMicaAlt">Mica Alt</system:String>
109113

110114
<!-- Setting Plugin -->
111115
<system:String x:Key="searchplugin">Search Plugin</system:String>

Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public Theme.ThemeData SelectedTheme
3939

4040
if (ThemeManager.Instance.BlurEnabled && Settings.UseDropShadowEffect == false)
4141
DropShadowEffect = true;
42-
//ThemeManager.Instance.RefreshFrame();
43-
ThemeManager.Instance.SetBlurForWindow();
42+
ThemeManager.Instance.RefreshFrame();
43+
//uThemeManager.Instance.SetBlurForWindow();
4444
}
4545
}
4646

@@ -183,17 +183,17 @@ public class BackdropTypeData : DropdownDataGeneric<BackdropTypes>
183183
{
184184
public void ApplyBackdrop()
185185
{
186-
IntPtr hWnd = new WindowInteropHelper(Application.Current.MainWindow).Handle;
187-
if (hWnd == IntPtr.Zero)
188-
return;
189-
190-
int backdropValue = Value switch
191-
{
192-
BackdropTypes.Acrylic => 3, // ✅ Acrylic (DWM_SYSTEMBACKDROP_TYPE = 3)
193-
BackdropTypes.Mica => 2, // ✅ Mica (DWM_SYSTEMBACKDROP_TYPE = 2)
194-
BackdropTypes.MicaAlt => 4, // ✅ MicaAlt (DWM_SYSTEMBACKDROP_TYPE = 4)
195-
_ => 0 // ✅ None (DWM_SYSTEMBACKDROP_TYPE = 0)
196-
};
186+
//IntPtr hWnd = new WindowInteropHelper(Application.Current.MainWindow).Handle;
187+
//if (hWnd == IntPtr.Zero)
188+
// return;
189+
190+
//int backdropValue = Value switch
191+
//{
192+
// BackdropTypes.Acrylic => 3, // ✅ Acrylic (DWM_SYSTEMBACKDROP_TYPE = 3)
193+
// BackdropTypes.Mica => 2, // ✅ Mica (DWM_SYSTEMBACKDROP_TYPE = 2)
194+
// BackdropTypes.MicaAlt => 4, // ✅ MicaAlt (DWM_SYSTEMBACKDROP_TYPE = 4)
195+
// _ => 0 // ✅ None (DWM_SYSTEMBACKDROP_TYPE = 0)
196+
//};
197197
ThemeManager.Instance.SetBlurForWindow();
198198
//Methods.SetWindowAttribute(hWnd, ParameterTypes.DWMWINDOWATTRIBUTE.DWMWA_SYSTEMBACKDROP_TYPE, backdropValue);
199199
}

0 commit comments

Comments
 (0)