UK
apps/winzik / forms / YouTubeForm.form.yaml · commit 6576d6f
# 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}}