- added hints to some buttons

This commit is contained in:
mortalis 2020-07-25 15:51:36 +02:00
parent eb483b813f
commit 65b2619327
11 changed files with 43 additions and 27 deletions

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
:data-link="link" :data-link="link"
class="fab right" class="fab right"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</header> </header>
@ -75,7 +75,7 @@
:data-link="release.link" :data-link="release.link"
class="clickable" class="clickable"
> >
<i class="material-icons"> <i class="material-icons" :title="$t('globals.download_hint')">
file_download file_download
</i> </i>
</td> </td>

View File

@ -62,6 +62,7 @@
@mouseleave="previewMouseLeave" @mouseleave="previewMouseLeave"
v-if="track.preview" v-if="track.preview"
class="material-icons preview_controls" class="material-icons preview_controls"
:title="$t('globals.play_hint')"
> >
play_arrow play_arrow
</i> </i>
@ -101,7 +102,7 @@
role="button" role="button"
aria-label="download" aria-label="download"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -12,13 +12,14 @@
class="material-icons download_bar_icon" class="material-icons download_bar_icon"
@click.prevent="toggleDownloadTab" @click.prevent="toggleDownloadTab"
ref="toggler" ref="toggler"
:title="$t('globals.toggle_download_tab_hint')"
></i> ></i>
<div id="queue_buttons"> <div id="queue_buttons">
<i id="open_downloads_folder" class="material-icons download_bar_icon hide" @click="openDownloadsFolder"> <i id="open_downloads_folder" class="material-icons download_bar_icon hide" @click="openDownloadsFolder">
folder_open folder_open
</i> </i>
<i id="clean_queue" class="material-icons download_bar_icon" @click="cleanQueue">clear_all</i> <i id="clean_queue" class="material-icons download_bar_icon" @click="cleanQueue" :title="$t('globals.clean_queue_hint')">clear_all</i>
<i id="cancel_queue" class="material-icons download_bar_icon" @click="cancelQueue">delete_sweep</i> <i id="cancel_queue" class="material-icons download_bar_icon" @click="cancelQueue" :title="$t('globals.cancel_queue_hint')">delete_sweep</i>
</div> </div>
<div id="download_list" @click="handleListClick" ref="list"></div> <div id="download_list" @click="handleListClick" ref="list"></div>
</div> </div>

View File

@ -43,7 +43,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.title }}</p> <p class="primary-text">{{ release.title }}</p>
@ -69,7 +69,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.title }}</p> <p class="primary-text">{{ release.title }}</p>
@ -100,7 +100,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.title }}</p> <p class="primary-text">{{ release.title }}</p>
@ -124,7 +124,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.name }}</p> <p class="primary-text">{{ release.name }}</p>
@ -153,6 +153,7 @@
@mouseleave="previewMouseLeave" @mouseleave="previewMouseLeave"
v-if="track.preview" v-if="track.preview"
class="material-icons preview_controls" class="material-icons preview_controls"
:title="$t('globals.play_hint')"
> >
play_arrow play_arrow
</i> </i>
@ -191,7 +192,7 @@
aria-label="download" aria-label="download"
> >
<div class="table__cell-content table__cell-content--vertical-center"> <div class="table__cell-content table__cell-content--vertical-center">
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</td> </td>
</tr> </tr>

View File

@ -25,7 +25,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.title }}</p> <p class="primary-text">{{ release.title }}</p>
@ -55,7 +55,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.title }}</p> <p class="primary-text">{{ release.title }}</p>

View File

@ -47,7 +47,7 @@
:data-link="link" :data-link="link"
class="fab right" class="fab right"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</header> </header>
<table class="table"> <table class="table">

View File

@ -51,7 +51,7 @@
:data-link="results.allTab.TOP_RESULT[0].link" :data-link="results.allTab.TOP_RESULT[0].link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<div class="info_box"> <div class="info_box">
@ -119,7 +119,7 @@
role="button" role="button"
aria-label="download" aria-label="download"
> >
<i class="material-icons"> <i class="material-icons" :title="$t('globals.download_hint')">
get_app get_app
</i> </i>
</td> </td>
@ -152,7 +152,7 @@
:data-link="'https://deezer.com/artist/' + release.ART_ID" :data-link="'https://deezer.com/artist/' + release.ART_ID"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.ART_NAME }}</p> <p class="primary-text">{{ release.ART_NAME }}</p>
@ -184,7 +184,7 @@
:data-link="'https://deezer.com/album/' + release.ALB_ID" :data-link="'https://deezer.com/album/' + release.ALB_ID"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text inline-flex"> <p class="primary-text inline-flex">
@ -225,7 +225,7 @@
:data-link="'https://deezer.com/playlist/' + release.PLAYLIST_ID" :data-link="'https://deezer.com/playlist/' + release.PLAYLIST_ID"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.TITLE }}</p> <p class="primary-text">{{ release.TITLE }}</p>
@ -278,6 +278,7 @@
@mouseleave="previewMouseLeave" @mouseleave="previewMouseLeave"
v-if="track.preview" v-if="track.preview"
class="material-icons preview_controls" class="material-icons preview_controls"
:title="$t('globals.play_hint')"
> >
play_arrow play_arrow
</i> </i>
@ -322,7 +323,7 @@
role="button" role="button"
aria-label="download" aria-label="download"
> >
<i class="material-icons"> <i class="material-icons" :title="$t('globals.download_hint')">
get_app get_app
</i> </i>
</td> </td>
@ -353,7 +354,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text inline-flex"> <p class="primary-text inline-flex">
@ -387,7 +388,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.name }}</p> <p class="primary-text">{{ release.name }}</p>
@ -418,7 +419,7 @@
:data-link="release.link" :data-link="release.link"
class="download_overlay" class="download_overlay"
> >
<i class="material-icons">get_app</i> <i class="material-icons" :title="$t('globals.download_hint')">get_app</i>
</div> </div>
</div> </div>
<p class="primary-text">{{ release.title }}</p> <p class="primary-text">{{ release.title }}</p>

View File

@ -44,6 +44,7 @@
:class="{ preview_playlist_controls: track.preview, disabled: !track.preview }" :class="{ preview_playlist_controls: track.preview, disabled: !track.preview }"
v-on="{ click: track.preview ? playPausePreview : false }" v-on="{ click: track.preview ? playPausePreview : false }"
:data-preview="track.preview" :data-preview="track.preview"
:title="$t('globals.play_hint')"
> >
play_arrow play_arrow
</i> </i>
@ -111,6 +112,7 @@
@click="playPausePreview" @click="playPausePreview"
:class="'material-icons' + (track.preview_url ? ' preview_playlist_controls' : '')" :class="'material-icons' + (track.preview_url ? ' preview_playlist_controls' : '')"
:data-preview="track.preview_url" :data-preview="track.preview_url"
:title="$t('globals.play_hint')"
> >
play_arrow play_arrow
</i> </i>

View File

@ -6,6 +6,11 @@ const en = {
download: 'Download {0}', download: 'Download {0}',
by: 'by {0}', by: 'by {0}',
in: 'in {0}', in: 'in {0}',
download_hint: 'Download',
play_hint: 'Play',
toggle_download_tab_hint: 'Expand/Collapse',
clean_queue_hint: 'Clear Finished',
cancel_queue_hint: 'Cancel All',
listTabs: { listTabs: {
empty: '', empty: '',
all: 'all', all: 'all',

View File

@ -6,6 +6,11 @@ const it = {
download: 'Scarica {0}', download: 'Scarica {0}',
by: 'di {0}', by: 'di {0}',
in: 'in {0}', in: 'in {0}',
download_hint: 'Scarica',
play_hint: 'Play',
toggle_download_tab_hint: 'Expand/Collapse',
clean_queue_hint: 'Clear Finished',
cancel_queue_hint: 'Cancel All',
listTabs: { listTabs: {
all: 'tutto', all: 'tutto',
top_result: 'miglior risultato', top_result: 'miglior risultato',