From cd62853743c5791ec19319a1b49cc31cf2f4586d Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 6 Jul 2026 08:05:57 -0600 Subject: [PATCH] fix(library): tooltips on the Library header action buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The random-album / random-artist / random-playlist / random-label buttons all exist (1:1 with 1.x) but rendered as bare shuffle icons — 1.x had title tooltips, so users couldn't tell them apart from a tracks-shuffle and reported the feature as removed (#554). CircleAction already supports the shared tooltip overlay; set it on all seven Library header actions. 7 msgids translated in all 7 locales. Fixes #554 cc --- .../translations/de/LC_MESSAGES/qbz-ui.po | 21 +++++++++++++++++++ .../translations/en/LC_MESSAGES/qbz-ui.po | 21 +++++++++++++++++++ .../translations/es/LC_MESSAGES/qbz-ui.po | 21 +++++++++++++++++++ .../translations/fr/LC_MESSAGES/qbz-ui.po | 21 +++++++++++++++++++ .../translations/ja/LC_MESSAGES/qbz-ui.po | 21 +++++++++++++++++++ .../translations/pt/LC_MESSAGES/qbz-ui.po | 21 +++++++++++++++++++ .../translations/ru/LC_MESSAGES/qbz-ui.po | 21 +++++++++++++++++++ .../qbz-ui/ui/favorites/FavoritesView.slint | 7 +++++++ 8 files changed, 154 insertions(+) diff --git a/crates/qbz-ui/translations/de/LC_MESSAGES/qbz-ui.po b/crates/qbz-ui/translations/de/LC_MESSAGES/qbz-ui.po index 7ea6d28ab..34a09b69b 100644 --- a/crates/qbz-ui/translations/de/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-ui/translations/de/LC_MESSAGES/qbz-ui.po @@ -4373,3 +4373,24 @@ msgstr "Direkter ALSA-Gerätezugriff ist in Flatpak/Snap blockiert — Audio-Bac msgid "Auto theme generation failed" msgstr "Automatische Themenerstellung fehlgeschlagen" + +msgid "Play all tracks" +msgstr "Alle Titel abspielen" + +msgid "Shuffle all tracks" +msgstr "Alle Titel zufällig abspielen" + +msgid "Select multiple tracks" +msgstr "Mehrere Titel auswählen" + +msgid "Play a random album" +msgstr "Zufälliges Album abspielen" + +msgid "Open a random artist" +msgstr "Zufälligen Künstler öffnen" + +msgid "Play a random playlist" +msgstr "Zufällige Playlist abspielen" + +msgid "Open a random label" +msgstr "Zufälliges Label öffnen" diff --git a/crates/qbz-ui/translations/en/LC_MESSAGES/qbz-ui.po b/crates/qbz-ui/translations/en/LC_MESSAGES/qbz-ui.po index 82fb28cef..eff848c01 100644 --- a/crates/qbz-ui/translations/en/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-ui/translations/en/LC_MESSAGES/qbz-ui.po @@ -139,3 +139,24 @@ msgstr "Library Albums" msgid "Auto theme generation failed" msgstr "Auto theme generation failed" + +msgid "Play all tracks" +msgstr "Play all tracks" + +msgid "Shuffle all tracks" +msgstr "Shuffle all tracks" + +msgid "Select multiple tracks" +msgstr "Select multiple tracks" + +msgid "Play a random album" +msgstr "Play a random album" + +msgid "Open a random artist" +msgstr "Open a random artist" + +msgid "Play a random playlist" +msgstr "Play a random playlist" + +msgid "Open a random label" +msgstr "Open a random label" diff --git a/crates/qbz-ui/translations/es/LC_MESSAGES/qbz-ui.po b/crates/qbz-ui/translations/es/LC_MESSAGES/qbz-ui.po index 29e1a8b42..7911ffa58 100644 --- a/crates/qbz-ui/translations/es/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-ui/translations/es/LC_MESSAGES/qbz-ui.po @@ -4403,3 +4403,24 @@ msgstr "El acceso directo a dispositivos ALSA está bloqueado dentro de Flatpak/ msgid "Auto theme generation failed" msgstr "Error al generar el tema automático" + +msgid "Play all tracks" +msgstr "Reproducir todas las pistas" + +msgid "Shuffle all tracks" +msgstr "Aleatorio: todas las pistas" + +msgid "Select multiple tracks" +msgstr "Seleccionar varias pistas" + +msgid "Play a random album" +msgstr "Reproducir un álbum al azar" + +msgid "Open a random artist" +msgstr "Abrir un artista al azar" + +msgid "Play a random playlist" +msgstr "Reproducir una playlist al azar" + +msgid "Open a random label" +msgstr "Abrir un sello al azar" diff --git a/crates/qbz-ui/translations/fr/LC_MESSAGES/qbz-ui.po b/crates/qbz-ui/translations/fr/LC_MESSAGES/qbz-ui.po index 8c439e1cd..ac2e9b8a0 100644 --- a/crates/qbz-ui/translations/fr/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-ui/translations/fr/LC_MESSAGES/qbz-ui.po @@ -4373,3 +4373,24 @@ msgstr "L'accès direct aux périphériques ALSA est bloqué dans Flatpak/Snap msgid "Auto theme generation failed" msgstr "Échec de la génération du thème automatique" + +msgid "Play all tracks" +msgstr "Lire tous les titres" + +msgid "Shuffle all tracks" +msgstr "Lecture aléatoire de tous les titres" + +msgid "Select multiple tracks" +msgstr "Sélectionner plusieurs titres" + +msgid "Play a random album" +msgstr "Lire un album au hasard" + +msgid "Open a random artist" +msgstr "Ouvrir un artiste au hasard" + +msgid "Play a random playlist" +msgstr "Lire une playlist au hasard" + +msgid "Open a random label" +msgstr "Ouvrir un label au hasard" diff --git a/crates/qbz-ui/translations/ja/LC_MESSAGES/qbz-ui.po b/crates/qbz-ui/translations/ja/LC_MESSAGES/qbz-ui.po index ff5260eb7..18b430ef3 100644 --- a/crates/qbz-ui/translations/ja/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-ui/translations/ja/LC_MESSAGES/qbz-ui.po @@ -4362,3 +4362,24 @@ msgstr "Flatpak/Snap 内では ALSA デバイスへの直接アクセスがブ msgid "Auto theme generation failed" msgstr "自動テーマの生成に失敗しました" + +msgid "Play all tracks" +msgstr "すべてのトラックを再生" + +msgid "Shuffle all tracks" +msgstr "すべてのトラックをシャッフル" + +msgid "Select multiple tracks" +msgstr "複数のトラックを選択" + +msgid "Play a random album" +msgstr "ランダムなアルバムを再生" + +msgid "Open a random artist" +msgstr "ランダムなアーティストを開く" + +msgid "Play a random playlist" +msgstr "ランダムなプレイリストを再生" + +msgid "Open a random label" +msgstr "ランダムなレーベルを開く" diff --git a/crates/qbz-ui/translations/pt/LC_MESSAGES/qbz-ui.po b/crates/qbz-ui/translations/pt/LC_MESSAGES/qbz-ui.po index b88d4499a..8b2ebb6fc 100644 --- a/crates/qbz-ui/translations/pt/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-ui/translations/pt/LC_MESSAGES/qbz-ui.po @@ -4373,3 +4373,24 @@ msgstr "O acesso direto a dispositivos ALSA está bloqueado no Flatpak/Snap — msgid "Auto theme generation failed" msgstr "Falha ao gerar o tema automático" + +msgid "Play all tracks" +msgstr "Reproduzir todas as faixas" + +msgid "Shuffle all tracks" +msgstr "Aleatório: todas as faixas" + +msgid "Select multiple tracks" +msgstr "Selecionar várias faixas" + +msgid "Play a random album" +msgstr "Reproduzir um álbum aleatório" + +msgid "Open a random artist" +msgstr "Abrir um artista aleatório" + +msgid "Play a random playlist" +msgstr "Reproduzir uma playlist aleatória" + +msgid "Open a random label" +msgstr "Abrir um selo aleatório" diff --git a/crates/qbz-ui/translations/ru/LC_MESSAGES/qbz-ui.po b/crates/qbz-ui/translations/ru/LC_MESSAGES/qbz-ui.po index 988057d1c..f988452dc 100644 --- a/crates/qbz-ui/translations/ru/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-ui/translations/ru/LC_MESSAGES/qbz-ui.po @@ -4386,3 +4386,24 @@ msgstr "Прямой доступ к устройствам ALSA заблоки msgid "Auto theme generation failed" msgstr "Не удалось сгенерировать автоматическую тему" + +msgid "Play all tracks" +msgstr "Воспроизвести все треки" + +msgid "Shuffle all tracks" +msgstr "Перемешать все треки" + +msgid "Select multiple tracks" +msgstr "Выбрать несколько треков" + +msgid "Play a random album" +msgstr "Воспроизвести случайный альбом" + +msgid "Open a random artist" +msgstr "Открыть случайного исполнителя" + +msgid "Play a random playlist" +msgstr "Воспроизвести случайный плейлист" + +msgid "Open a random label" +msgstr "Открыть случайный лейбл" diff --git a/crates/qbz-ui/ui/favorites/FavoritesView.slint b/crates/qbz-ui/ui/favorites/FavoritesView.slint index e1a80c4a8..36e7e31b8 100644 --- a/crates/qbz-ui/ui/favorites/FavoritesView.slint +++ b/crates/qbz-ui/ui/favorites/FavoritesView.slint @@ -562,6 +562,7 @@ export component FavoritesView inherits Rectangle { CircleAction { icon: @image-url("../assets/icons/play-fill.svg"); primary: true; + tooltip: @tr("Play all tracks"); clicked => { FavoritesActions.play-all-tracks(); } } } @@ -569,6 +570,7 @@ export component FavoritesView inherits Rectangle { alignment: center; CircleAction { icon: @image-url("../assets/icons/shuffle.svg"); + tooltip: @tr("Shuffle all tracks"); clicked => { FavoritesActions.shuffle-tracks(); } } } @@ -577,6 +579,7 @@ export component FavoritesView inherits Rectangle { CircleAction { icon: @image-url("../assets/icons/square-check-big.svg"); active: FavoritesState.tracks-multi-select; + tooltip: @tr("Select multiple tracks"); clicked => { FavoritesActions.toggle-multi-select(); } } } @@ -588,6 +591,7 @@ export component FavoritesView inherits Rectangle { alignment: center; CircleAction { icon: @image-url("../assets/icons/shuffle.svg"); + tooltip: @tr("Play a random album"); clicked => { FavoritesActions.albums-shuffle(); } } } @@ -599,6 +603,7 @@ export component FavoritesView inherits Rectangle { alignment: center; CircleAction { icon: @image-url("../assets/icons/shuffle.svg"); + tooltip: @tr("Open a random artist"); clicked => { FavoritesActions.artists-shuffle(); } } } @@ -611,6 +616,7 @@ export component FavoritesView inherits Rectangle { alignment: center; CircleAction { icon: @image-url("../assets/icons/shuffle.svg"); + tooltip: @tr("Play a random playlist"); clicked => { FavoritesActions.playlists-random(); } } } @@ -623,6 +629,7 @@ export component FavoritesView inherits Rectangle { alignment: center; CircleAction { icon: @image-url("../assets/icons/shuffle.svg"); + tooltip: @tr("Open a random label"); clicked => { FavoritesActions.labels-random(); } } }