chores: Fix

This commit is contained in:
Zhe Fang
2025-11-14 11:11:24 -05:00
parent 4eeaf9aeec
commit 8cb8a026ad
2 changed files with 1 additions and 28 deletions

View File

@@ -410,32 +410,5 @@ namespace BetterLyrics.WinUI3.ViewModels.LyricsRendererViewModel
);
}
private void FillBackground(ICanvasAnimatedControl control, CanvasDrawingSession ds, CanvasLinearGradientBrush brush, double radius, double opacity)
{
ds.FillRoundedRectangle(
new Rect(0, 0, _canvasWidth, _canvasHeight),
(float)radius,
(float)radius,
brush
);
}
private CanvasLinearGradientBrush CreateVerticalFillBrush(
ICanvasAnimatedControl control,
List<(double position, Color color)> stops,
double startY,
double height
)
{
return new CanvasLinearGradientBrush(control, stops.Select(x => new CanvasGradientStop
{
Position = (float)x.position,
Color = x.color,
}).ToArray())
{
StartPoint = new Vector2(0, (float)startY),
EndPoint = new Vector2(0, (float)(startY + height)),
};
}
}
}

View File

@@ -98,7 +98,7 @@ namespace BetterLyrics.WinUI3.ViewModels.LyricsRendererViewModel
//_effect?.Properties["iTime"] = Convert.ToSingle(TotalTime.TotalSeconds);
if (_isDeviceChanged || _isFluidOverlayEnabledChanged)
if (_isDeviceChanged || _isLyricsWindowsStatusChanged || _isFluidOverlayEnabledChanged)
{
if (_liveStatesService.LiveStates.LyricsWindowStatus.LyricsBackgroundSettings.IsFluidOverlayEnabled)
{