Plugin 1.2.0: Taste 'Gefaellt mir nicht', Fortschrittsbalken auf 'Aktueller Titel'

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-15 11:04:26 +01:00
co-authored by Claude Opus 5.5
parent b8b709c986
commit 00047b9fa1
16 changed files with 170 additions and 23 deletions
+14 -1
View File
@@ -15,7 +15,7 @@ const HEART = heartPoints();
export const GLYPHS = [
'play', 'pause', 'next', 'previous', 'rewind', 'forward', 'volup', 'voldown', 'vol', 'mute',
'note', 'heart', 'heartfill', 'shuffle', 'repeat', 'repeatone', 'playlist', 'tabs', 'window',
'note', 'heart', 'heartfill', 'dislike', 'dislikefill', 'shuffle', 'repeat', 'repeatone', 'playlist', 'tabs', 'window',
];
/**
@@ -103,6 +103,19 @@ export function drawGlyph(canvas, name, cx, cy, r, color, background) {
case 'heartfill':
heart(1, color);
break;
case 'dislike':
case 'dislikefill': {
// Gebrochenes Herz: Zickzack-Riss in Hintergrundfarbe quer durch das Herz.
heart(1, color);
if (name === 'dislike') heart(0.62, background);
const crack = [[0.05, -0.75], [-0.18, -0.3], [0.15, 0.05], [-0.12, 0.45], [0.05, 0.95]];
crack.slice(1).forEach(([x, y], i) => {
const [ax, ay] = p(...crack[i]);
const [bx, by] = p(x, y);
canvas.line(ax, ay, bx, by, 0.16 * r, background);
});
break;
}
case 'shuffle':
path([[-0.9, 0.5], [-0.3, 0.5], [0.3, -0.5], [0.55, -0.5]], 0.18);
path([[-0.9, -0.5], [-0.3, -0.5], [0.3, 0.5], [0.55, 0.5]], 0.18);