winzik/apps/winzik/forms/YouTubeForm.form.yaml
David Nurdin a078aebcc6 WinZik : ergonomie des fenêtres Options, Fichiers, YouTube, Spotify, Marketplace, Tag
- Échap annule aussi depuis une case de texte, Entrée valide depuis les cases (Tag, Options)
- focus utile à l'ouverture, boutons grisés quand l'action est impossible
- messages d'erreur qui disent quoi faire (année, repères, dossier de paroles, chemin, réseau)
- textes coupés corrigés (Début / Fin, Partager, placeholder YouTube, « Choose… »)
- Spotify sans Client ID : bouton « Ouvrir les Options… » ; message d'import gardé
- test du tag : jamais sur le morceau de démo lui-même

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 06:53:21 +01:00

49 lines
2.5 KiB
YAML

# YouTube in WinZik: a search, then the chosen video downloaded by yt-dlp as an MP3 (Musique/WinZik) or an MP4
# (Vidéos/WinZik), added to the play list when it is there.
form:
title: YouTube
dialog: true
width: 660
theme: dark
accent: '#ff3030'
gap: 8
children:
- type: row
gap: 8
children:
- {type: combobox, id: source, width: 190, placeholder: 'Où chercher', tooltip: 'Où chercher', events: {change: onSourceChange}}
- {type: textbox, id: query, grow: 1, tooltip: 'Un artiste, un titre, ou un lien YouTube, Spotify, Deezer…', placeholder: 'artiste, titre, ou un lien', events: {submit: onQuerySubmit}}
- {type: button, id: find, text: Chercher, default: true, events: {click: onFindClick}}
- {type: progressbar, id: busy, value: 0, max: 100, height: 6, visible: false}
- {type: listbox, id: results, height: 260, events: {activate: onResultsActivate}}
- type: row
gap: 8
children:
- {type: button, id: prev, text: '< Page précédente', events: {click: onPrevClick}}
- {type: spacer}
- {type: label, id: pageText, text: '', style: small}
- {type: spacer}
- {type: button, id: next, text: 'Page suivante >', events: {click: onNextClick}}
- type: row
gap: 8
children:
- {type: label, text: 'Format :'}
- {type: combobox, id: format, width: 220, items: ['MP3 (musique)', 'MP4 (vidéo)']}
- {type: spacer}
- {type: button, id: get, text: Télécharger, style: primary, events: {click: onGetClick}}
- {type: label, text: 'Téléchargements (les suivants attendent leur tour) :', style: small}
- {type: listbox, id: queue, height: 96}
- type: row
gap: 8
children:
- {type: progressbar, id: total, value: 0, max: 100, grow: 1}
- {type: label, id: totalText, text: '', style: small, width: 150}
- {type: button, id: remove, text: 'Retirer', events: {click: onRemoveClick}}
- {type: button, id: clearAll, text: 'Vider la file', style: flat, events: {click: onClearAllClick}}
- {type: button, id: clear, text: 'Vider les terminés', events: {click: onClearClick}}
- {type: label, id: jobs, text: '', style: small, visible: false}
- {type: label, id: where, text: '', style: muted, visible: false}
- type: row
children:
- {type: label, id: status, text: '', style: small, grow: 1}
- {type: button, id: quit, text: Fermer, cancel: true, events: {click: onQuitClick}}