Skip to content

Commit 7766d70

Browse files
committed
Rename GetFreezeSolidColorBrush to GetFrozenSolidColorBrush
Renamed the method GetFreezeSolidColorBrush to GetFrozenSolidColorBrush in ThemeHelper.cs for improved naming consistency. Updated all references in Theme.cs accordingly. No changes to functionality.
1 parent 36e15d3 commit 7766d70

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ private void SetBlurForWindow(string theme, BackdropTypes backdropType)
674674
if (backdropType == BackdropTypes.Mica || backdropType == BackdropTypes.MicaAlt)
675675
{
676676
windowBorderStyle.Setters.Remove(windowBorderStyle.Setters.OfType<Setter>().FirstOrDefault(x => x.Property == Control.BackgroundProperty));
677-
windowBorderStyle.Setters.Add(new Setter(Border.BackgroundProperty, ThemeHelper.GetFreezeSolidColorBrush(Color.FromArgb(1, 0, 0, 0))));
677+
windowBorderStyle.Setters.Add(new Setter(Border.BackgroundProperty, ThemeHelper.GetFrozenSolidColorBrush(Color.FromArgb(1, 0, 0, 0))));
678678
}
679679
else if (backdropType == BackdropTypes.Acrylic)
680680
{
@@ -803,7 +803,7 @@ private void ApplyPreviewBackground(Color? bgColor = null)
803803

804804
// Apply background color (remove transparency in color)
805805
var backgroundColor = Color.FromRgb(bgColor.Value.R, bgColor.Value.G, bgColor.Value.B);
806-
previewStyle.Setters.Add(new Setter(Border.BackgroundProperty, ThemeHelper.GetFreezeSolidColorBrush(backgroundColor)));
806+
previewStyle.Setters.Add(new Setter(Border.BackgroundProperty, ThemeHelper.GetFrozenSolidColorBrush(backgroundColor)));
807807

808808
// The blur theme keeps the corner round fixed (applying DWM code to modify it causes rendering issues).
809809
// The non-blur theme retains the previously set WindowBorderStyle.
@@ -902,11 +902,11 @@ private void ColorizeWindow(string theme, BackdropTypes backdropType)
902902
// Only set the background to transparent if the theme supports blur
903903
if (backdropType == BackdropTypes.Mica || backdropType == BackdropTypes.MicaAlt)
904904
{
905-
mainWindow.Background = ThemeHelper.GetFreezeSolidColorBrush(Color.FromArgb(1, 0, 0, 0));
905+
mainWindow.Background = ThemeHelper.GetFrozenSolidColorBrush(Color.FromArgb(1, 0, 0, 0));
906906
}
907907
else
908908
{
909-
mainWindow.Background = ThemeHelper.GetFreezeSolidColorBrush(selectedBG);
909+
mainWindow.Background = ThemeHelper.GetFrozenSolidColorBrush(selectedBG);
910910
}
911911
}
912912
}

Flow.Launcher.Core/Resource/ThemeHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void CopyStyle(Style originalStyle, Style targetStyle)
2121
}
2222
}
2323

24-
public static SolidColorBrush GetFreezeSolidColorBrush(Color color)
24+
public static SolidColorBrush GetFrozenSolidColorBrush(Color color)
2525
{
2626
var brush = new SolidColorBrush(color);
2727
brush.Freeze();

0 commit comments

Comments
 (0)