mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:08:33 +08:00
- Add album text in lyrics render - Improve song info update and draw algo - Upgrade to .NET 10
24 lines
614 B
C#
24 lines
614 B
C#
using System;
|
|
|
|
namespace BetterLyrics.WinUI3.Enums
|
|
{
|
|
public enum DockPlacement
|
|
{
|
|
Top,
|
|
Bottom
|
|
}
|
|
|
|
public static class DockPlacementExtensions
|
|
{
|
|
public static WindowPixelSampleMode ToWindowPixelSampleMode(this DockPlacement placement)
|
|
{
|
|
return placement switch
|
|
{
|
|
DockPlacement.Top => WindowPixelSampleMode.BelowWindow,
|
|
DockPlacement.Bottom => WindowPixelSampleMode.AboveWindow,
|
|
_ => throw new ArgumentOutOfRangeException(nameof(placement), placement, null)
|
|
};
|
|
}
|
|
}
|
|
}
|