mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:24:55 +08:00
chores: Fix
This commit is contained in:
@@ -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)),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user