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:
+14
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user