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
+3
View File
@@ -44,6 +44,9 @@ const ACTIONS = [
de: ['Aktueller Titel', 'Cover und Titel, Drücken = Wiedergabe/Pause'] },
{ id: 'like', accent: 'like', states: [{ glyph: 'heart' }, { glyph: 'heartfill', on: true }],
en: ['Like', 'Like the current track'], de: ['Gefällt mir', 'Aktuellen Titel mit „Gefällt mir“ markieren'] },
{ id: 'dislike', accent: 'like', states: [{ glyph: 'dislike' }, { glyph: 'dislikefill', on: true }],
en: ['Dislike', 'Dislike the current track'],
de: ['Gefällt mir nicht', 'Aktuellen Titel mit „Gefällt mir nicht“ markieren'] },
{ id: 'shuffle', accent: 'misc', states: [{ glyph: 'shuffle' }],
en: ['Shuffle', 'Toggle shuffle'], de: ['Zufallswiedergabe', 'Zufallswiedergabe umschalten'] },
{ id: 'repeat', accent: 'misc',
+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);