Remove StaticPalette class, redefine Palette type

StaticPalette was not really being used besides as a list wrapper, so
that is removed. Palette type is getting some use in the rest of the
codebase, so I have redefined that type as a Sequence[str], becauase
that's basically what it is.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-05-31 10:10:48 -07:00
parent 7249ab3cff
commit 28eca5e2de
2 changed files with 84 additions and 120 deletions

View File

@@ -1,42 +1,42 @@
<svg width="256" height="160" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="32" height="32" fill="hsl(0.00,0.00%,23.00%)" />
<rect x="32" y="0" width="32" height="32" fill="hsl(0.00,0.00%,30.00%)" />
<rect x="64" y="0" width="32" height="32" fill="hsl(0.00,0.00%,30.00%)" />
<rect x="96" y="0" width="32" height="32" fill="hsl(0.00,0.00%,0.00%)" />
<rect x="128" y="0" width="32" height="32" fill="hsl(0.00,0.00%,40.00%)" />
<rect x="160" y="0" width="32" height="32" fill="hsl(0.00,0.00%,30.00%)" />
<rect x="192" y="0" width="32" height="32" fill="hsl(0.00,0.00%,33.00%)" />
<rect x="224" y="0" width="32" height="32" fill="hsl(0.00,0.00%,43.00%)" />
<rect x="0" y="32" width="32" height="32" fill="hsl(0.00,0.00%,20.00%)" />
<rect x="32" y="32" width="32" height="32" fill="hsl(0.00,0.00%,33.00%)" />
<rect x="64" y="32" width="32" height="32" fill="hsl(0.00,0.00%,33.00%)" />
<rect x="96" y="32" width="32" height="32" fill="hsl(0.00,0.00%,10.00%)" />
<rect x="128" y="32" width="32" height="32" fill="hsl(0.00,0.00%,50.00%)" />
<rect x="160" y="32" width="32" height="32" fill="hsl(0.00,0.00%,30.00%)" />
<rect x="192" y="32" width="32" height="32" fill="hsl(0.00,0.00%,30.00%)" />
<rect x="224" y="32" width="32" height="32" fill="hsl(0.00,0.00%,20.00%)" />
<rect x="0" y="64" width="32" height="32" fill="hsl(0.00,0.00%,40.00%)" />
<rect x="32" y="64" width="32" height="32" fill="hsl(0.00,0.00%,37.00%)" />
<rect x="64" y="64" width="32" height="32" fill="hsl(0.00,0.00%,43.00%)" />
<rect x="96" y="64" width="32" height="32" fill="hsl(0.00,0.00%,37.00%)" />
<rect x="128" y="64" width="32" height="32" fill="hsl(0.00,0.00%,13.00%)" />
<rect x="160" y="64" width="32" height="32" fill="hsl(0.00,0.00%,20.00%)" />
<rect x="192" y="64" width="32" height="32" fill="hsl(0.00,0.00%,17.00%)" />
<rect x="224" y="64" width="32" height="32" fill="hsl(0.00,0.00%,13.00%)" />
<rect x="0" y="96" width="32" height="32" fill="hsl(0.00,0.00%,3.00%)" />
<rect x="32" y="96" width="32" height="32" fill="hsl(0.00,0.00%,3.00%)" />
<rect x="64" y="96" width="32" height="32" fill="hsl(0.00,0.00%,40.00%)" />
<rect x="96" y="96" width="32" height="32" fill="hsl(0.00,0.00%,40.00%)" />
<rect x="128" y="96" width="32" height="32" fill="hsl(0.00,0.00%,30.00%)" />
<rect x="160" y="96" width="32" height="32" fill="hsl(0.00,0.00%,23.00%)" />
<rect x="192" y="96" width="32" height="32" fill="hsl(0.00,0.00%,20.00%)" />
<rect x="224" y="96" width="32" height="32" fill="hsl(0.00,0.00%,3.00%)" />
<rect x="0" y="128" width="32" height="32" fill="hsl(0.00,0.00%,0.00%)" />
<rect x="32" y="128" width="32" height="32" fill="hsl(0.00,0.00%,0.00%)" />
<rect x="64" y="128" width="32" height="32" fill="hsl(0.00,0.00%,27.00%)" />
<rect x="96" y="128" width="32" height="32" fill="hsl(0.00,0.00%,3.00%)" />
<rect x="128" y="128" width="32" height="32" fill="hsl(0.00,0.00%,37.00%)" />
<rect x="160" y="128" width="32" height="32" fill="hsl(0.00,0.00%,37.00%)" />
<rect x="192" y="128" width="32" height="32" fill="hsl(0.00,0.00%,33.00%)" />
<rect x="224" y="128" width="32" height="32" fill="hsl(0.00,0.00%,7.00%)" />
<rect x="0" y="0" width="32" height="32" fill="hsl(330.00,100.00%,23.00%)" />
<rect x="32" y="0" width="32" height="32" fill="hsl(330.00,100.00%,7.00%)" />
<rect x="64" y="0" width="32" height="32" fill="hsl(330.00,100.00%,13.00%)" />
<rect x="96" y="0" width="32" height="32" fill="hsl(330.00,100.00%,30.00%)" />
<rect x="128" y="0" width="32" height="32" fill="hsl(330.00,100.00%,33.00%)" />
<rect x="160" y="0" width="32" height="32" fill="hsl(330.00,100.00%,37.00%)" />
<rect x="192" y="0" width="32" height="32" fill="hsl(330.00,100.00%,10.00%)" />
<rect x="224" y="0" width="32" height="32" fill="hsl(330.00,100.00%,40.00%)" />
<rect x="0" y="32" width="32" height="32" fill="hsl(330.00,100.00%,50.00%)" />
<rect x="32" y="32" width="32" height="32" fill="hsl(330.00,100.00%,50.00%)" />
<rect x="64" y="32" width="32" height="32" fill="hsl(330.00,100.00%,0.00%)" />
<rect x="96" y="32" width="32" height="32" fill="hsl(330.00,100.00%,23.00%)" />
<rect x="128" y="32" width="32" height="32" fill="hsl(330.00,100.00%,0.00%)" />
<rect x="160" y="32" width="32" height="32" fill="hsl(330.00,100.00%,27.00%)" />
<rect x="192" y="32" width="32" height="32" fill="hsl(330.00,100.00%,7.00%)" />
<rect x="224" y="32" width="32" height="32" fill="hsl(330.00,100.00%,47.00%)" />
<rect x="0" y="64" width="32" height="32" fill="hsl(330.00,100.00%,0.00%)" />
<rect x="32" y="64" width="32" height="32" fill="hsl(330.00,100.00%,27.00%)" />
<rect x="64" y="64" width="32" height="32" fill="hsl(330.00,100.00%,3.00%)" />
<rect x="96" y="64" width="32" height="32" fill="hsl(330.00,100.00%,37.00%)" />
<rect x="128" y="64" width="32" height="32" fill="hsl(330.00,100.00%,43.00%)" />
<rect x="160" y="64" width="32" height="32" fill="hsl(330.00,100.00%,23.00%)" />
<rect x="192" y="64" width="32" height="32" fill="hsl(330.00,100.00%,23.00%)" />
<rect x="224" y="64" width="32" height="32" fill="hsl(330.00,100.00%,47.00%)" />
<rect x="0" y="96" width="32" height="32" fill="hsl(330.00,100.00%,40.00%)" />
<rect x="32" y="96" width="32" height="32" fill="hsl(330.00,100.00%,50.00%)" />
<rect x="64" y="96" width="32" height="32" fill="hsl(330.00,100.00%,7.00%)" />
<rect x="96" y="96" width="32" height="32" fill="hsl(330.00,100.00%,37.00%)" />
<rect x="128" y="96" width="32" height="32" fill="hsl(330.00,100.00%,47.00%)" />
<rect x="160" y="96" width="32" height="32" fill="hsl(330.00,100.00%,33.00%)" />
<rect x="192" y="96" width="32" height="32" fill="hsl(330.00,100.00%,50.00%)" />
<rect x="224" y="96" width="32" height="32" fill="hsl(330.00,100.00%,3.00%)" />
<rect x="0" y="128" width="32" height="32" fill="hsl(330.00,100.00%,3.00%)" />
<rect x="32" y="128" width="32" height="32" fill="hsl(330.00,100.00%,0.00%)" />
<rect x="64" y="128" width="32" height="32" fill="hsl(330.00,100.00%,27.00%)" />
<rect x="96" y="128" width="32" height="32" fill="hsl(330.00,100.00%,37.00%)" />
<rect x="128" y="128" width="32" height="32" fill="hsl(330.00,100.00%,43.00%)" />
<rect x="160" y="128" width="32" height="32" fill="hsl(330.00,100.00%,50.00%)" />
<rect x="192" y="128" width="32" height="32" fill="hsl(330.00,100.00%,23.00%)" />
<rect x="224" y="128" width="32" height="32" fill="hsl(330.00,100.00%,30.00%)" />
</svg>

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB