- Add album text in lyrics render
- Improve song info update and draw algo
- Upgrade to .NET 10
This commit is contained in:
Zhe Fang
2025-11-12 19:15:19 -05:00
parent 008c80c886
commit 4926fe55a3
198 changed files with 367 additions and 1211 deletions

View File

@@ -3,7 +3,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Threading;
using System.Threading.Tasks;
namespace Impressionist.Implementations
@@ -69,7 +68,7 @@ namespace Impressionist.Implementations
builder = builder.Where(t => !t.Key.RGBVectorLStarIsDark());
}
}
var targetColor = builder.ToDictionary(t => t.Key, t => t.Value);
var targetColor = builder.ToDictionary(t => t.Key, t => t.Value);
foreach (var color in targetColor)
{
quantizer.AddColorRange(color.Key, color.Value);
@@ -139,7 +138,7 @@ namespace Impressionist.Implementations
}
public List<Vector3> GetPaletteResult(int count)
{
return Root.GetPaletteResult().OrderByDescending(t=>t.Value).Take(count).Select(t=>t.Key).ToList();
return Root.GetPaletteResult().OrderByDescending(t => t.Value).Take(count).Select(t => t.Key).ToList();
}
public Vector3 GetThemeResult()
{

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>
<TargetFramework>net10.0-windows10.0.26100.0</TargetFramework>
<IsPublishable>False</IsPublishable>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
</PropertyGroup>