Commit 5c81d1ef authored by Andrea Scarpino's avatar Andrea Scarpino

Preview song text in the cover

parent 690eb785
......@@ -27,8 +27,47 @@ import Sailfish.Silica 1.0
CoverBackground {
Connections {
target: manager
onSearchResult: {
placeholder.visible = !found;
if (found) {
title.text = lyric.artist + " - " + lyric.song;
songText.text = lyric.text;
}
songInfo.visible = found;
}
}
CoverPlaceholder {
id: placeholder
text: "Lyrics"
icon.source: "/usr/share/icons/hicolor/86x86/apps/harbour-lyrics.png"
}
Column {
id: songInfo
anchors.centerIn: parent
x: Theme.paddingSmall
width: parent.width - Theme.paddingSmall * 2
Label {
id: title
width: parent.width
wrapMode: Text.Wrap
font.pixelSize: Theme.fontSizeMedium
horizontalAlignment: Text.AlignHCenter
}
Label {
id: songText
width: parent.width
wrapMode: Text.Wrap
maximumLineCount: 10
elide: Text.ElideRight
font.pixelSize: Theme.fontSizeExtraSmall
}
}
}
......@@ -4,37 +4,37 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="65"/>
<location filename="../qml/pages/MainPage.qml" line="76"/>
<source>Clear</source>
<translation>محو</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<location filename="../qml/pages/MainPage.qml" line="70"/>
<source>Settings</source>
<translation>الإعدادات</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="165"/>
<location filename="../qml/pages/MainPage.qml" line="179"/>
<source>Powered by %1</source>
<translation>مشغل بواسطة %1</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="108"/>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<source>Artist</source>
<translation>الفنان</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="78"/>
<location filename="../qml/pages/MainPage.qml" line="89"/>
<source>Copy to clipboard</source>
<translation>انسخ إلى الحافظة</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<location filename="../qml/pages/MainPage.qml" line="131"/>
<source>Song</source>
<translation>الأغنية</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="135"/>
<location filename="../qml/pages/MainPage.qml" line="148"/>
<source>Search</source>
<translation>بحث</translation>
</message>
......@@ -52,7 +52,17 @@
<translation>موفر</translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="64"/>
<location filename="../qml/pages/Settings.qml" line="66"/>
<source>Enable Media Player scanner</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="67"/>
<source>Checks Media Player to get song info. Do not focus any field to allow text substitution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="76"/>
<source>Clear cache</source>
<translation>امسح الخابية</translation>
</message>
......
......@@ -4,37 +4,37 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="65"/>
<location filename="../qml/pages/MainPage.qml" line="76"/>
<source>Clear</source>
<translation>Neteja</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<location filename="../qml/pages/MainPage.qml" line="70"/>
<source>Settings</source>
<translation>Configuració</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="165"/>
<location filename="../qml/pages/MainPage.qml" line="179"/>
<source>Powered by %1</source>
<translation>Impulsat per %1</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="108"/>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<source>Artist</source>
<translation>Artista</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="78"/>
<location filename="../qml/pages/MainPage.qml" line="89"/>
<source>Copy to clipboard</source>
<translation>Copia al porta-retalls</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<location filename="../qml/pages/MainPage.qml" line="131"/>
<source>Song</source>
<translation>Cançó</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="135"/>
<location filename="../qml/pages/MainPage.qml" line="148"/>
<source>Search</source>
<translation>Cerca</translation>
</message>
......@@ -52,7 +52,17 @@
<translation>Proveïdor</translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="64"/>
<location filename="../qml/pages/Settings.qml" line="66"/>
<source>Enable Media Player scanner</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="67"/>
<source>Checks Media Player to get song info. Do not focus any field to allow text substitution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="76"/>
<source>Clear cache</source>
<translation>Neteja la memòria cau</translation>
</message>
......
......@@ -4,37 +4,37 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="65"/>
<location filename="../qml/pages/MainPage.qml" line="76"/>
<source>Clear</source>
<translation>Vyprázdnit</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<location filename="../qml/pages/MainPage.qml" line="70"/>
<source>Settings</source>
<translation>Nastavení</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="165"/>
<location filename="../qml/pages/MainPage.qml" line="179"/>
<source>Powered by %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="108"/>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<source>Artist</source>
<translation>Umělec</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="78"/>
<location filename="../qml/pages/MainPage.qml" line="89"/>
<source>Copy to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<location filename="../qml/pages/MainPage.qml" line="131"/>
<source>Song</source>
<translation>Píseň</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="135"/>
<location filename="../qml/pages/MainPage.qml" line="148"/>
<source>Search</source>
<translation>Hledat</translation>
</message>
......@@ -52,7 +52,17 @@
<translation>Poskytovatel</translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="64"/>
<location filename="../qml/pages/Settings.qml" line="66"/>
<source>Enable Media Player scanner</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="67"/>
<source>Checks Media Player to get song info. Do not focus any field to allow text substitution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="76"/>
<source>Clear cache</source>
<translation type="unfinished"></translation>
</message>
......
......@@ -4,37 +4,37 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="65"/>
<location filename="../qml/pages/MainPage.qml" line="76"/>
<source>Clear</source>
<translation>Tyhjennä</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<location filename="../qml/pages/MainPage.qml" line="70"/>
<source>Settings</source>
<translation>Asetukset</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="165"/>
<location filename="../qml/pages/MainPage.qml" line="179"/>
<source>Powered by %1</source>
<translation>Powered by %1</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="108"/>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<source>Artist</source>
<translation>Artisti</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="78"/>
<location filename="../qml/pages/MainPage.qml" line="89"/>
<source>Copy to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<location filename="../qml/pages/MainPage.qml" line="131"/>
<source>Song</source>
<translation>Kappale</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="135"/>
<location filename="../qml/pages/MainPage.qml" line="148"/>
<source>Search</source>
<translation>Etsi</translation>
</message>
......@@ -52,7 +52,17 @@
<translation>Toimittaja</translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="64"/>
<location filename="../qml/pages/Settings.qml" line="66"/>
<source>Enable Media Player scanner</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="67"/>
<source>Checks Media Player to get song info. Do not focus any field to allow text substitution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="76"/>
<source>Clear cache</source>
<translation type="unfinished"></translation>
</message>
......
......@@ -4,37 +4,37 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="65"/>
<location filename="../qml/pages/MainPage.qml" line="76"/>
<source>Clear</source>
<translation>Effacer</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<location filename="../qml/pages/MainPage.qml" line="70"/>
<source>Settings</source>
<translation>Paramètres</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="165"/>
<location filename="../qml/pages/MainPage.qml" line="179"/>
<source>Powered by %1</source>
<translation>Powered by %1</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="108"/>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<source>Artist</source>
<translation>Artiste</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="78"/>
<location filename="../qml/pages/MainPage.qml" line="89"/>
<source>Copy to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<location filename="../qml/pages/MainPage.qml" line="131"/>
<source>Song</source>
<translation>Morceau</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="135"/>
<location filename="../qml/pages/MainPage.qml" line="148"/>
<source>Search</source>
<translation>Recherche</translation>
</message>
......@@ -52,7 +52,17 @@
<translation>Fournisseur</translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="64"/>
<location filename="../qml/pages/Settings.qml" line="66"/>
<source>Enable Media Player scanner</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="67"/>
<source>Checks Media Player to get song info. Do not focus any field to allow text substitution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="76"/>
<source>Clear cache</source>
<translation type="unfinished"></translation>
</message>
......
......@@ -4,37 +4,37 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="65"/>
<location filename="../qml/pages/MainPage.qml" line="76"/>
<source>Clear</source>
<translation>Pulisci</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<location filename="../qml/pages/MainPage.qml" line="70"/>
<source>Settings</source>
<translation>Impostazioni</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="165"/>
<location filename="../qml/pages/MainPage.qml" line="179"/>
<source>Powered by %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="108"/>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<source>Artist</source>
<translation>Artista</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="78"/>
<location filename="../qml/pages/MainPage.qml" line="89"/>
<source>Copy to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<location filename="../qml/pages/MainPage.qml" line="131"/>
<source>Song</source>
<translation>Brano</translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="135"/>
<location filename="../qml/pages/MainPage.qml" line="148"/>
<source>Search</source>
<translation>Cerca</translation>
</message>
......@@ -52,7 +52,17 @@
<translation>Servizio</translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="64"/>
<location filename="../qml/pages/Settings.qml" line="66"/>
<source>Enable Media Player scanner</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="67"/>
<source>Checks Media Player to get song info. Do not focus any field to allow text substitution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="76"/>
<source>Clear cache</source>
<translation type="unfinished"></translation>
</message>
......
......@@ -4,37 +4,37 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="65"/>
<location filename="../qml/pages/MainPage.qml" line="76"/>
<source>Clear</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="59"/>
<location filename="../qml/pages/MainPage.qml" line="70"/>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="165"/>
<location filename="../qml/pages/MainPage.qml" line="179"/>
<source>Powered by %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="108"/>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<source>Artist</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="78"/>
<location filename="../qml/pages/MainPage.qml" line="89"/>
<source>Copy to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="119"/>
<location filename="../qml/pages/MainPage.qml" line="131"/>
<source>Song</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="135"/>
<location filename="../qml/pages/MainPage.qml" line="148"/>
<source>Search</source>
<translation type="unfinished"></translation>
</message>
......@@ -52,7 +52,17 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="64"/>
<location filename="../qml/pages/Settings.qml" line="66"/>
<source>Enable Media Player scanner</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="67"/>
<source>Checks Media Player to get song info. Do not focus any field to allow text substitution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/Settings.qml" line="76"/>
<source>Clear cache</source>
<translation type="unfinished"></translation>
</message>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment