D12552: Use title, album and artist in UI
Matthijs Tijink
noreply at phabricator.kde.org
Mon Apr 30 18:36:21 UTC 2018
mtijink added a comment.
In D12552#255007 <https://phabricator.kde.org/D12552#255007>, @nicolasfella wrote:
> Turns out there are more cases to handle:
>
> - No title available -> show nowplaying
> - Title availabe, no artist/album available -> show title
> - title and either album or artist -> show title and either album or artist
> - title, album and artist available -> show title and artist - album
>
> Any hints on simplifying that logic is welcome
I think this would work fine:
First label: `title` or, if not available, `nowPlaying`
Second label: `artist - album` or `artist` (if album isn't available). And use `visible: text.length > 0`.
REPOSITORY
R224 KDE Connect
REVISION DETAIL
https://phabricator.kde.org/D12552
To: nicolasfella, #kde_connect, apol
Cc: mtijink, apol, #kde_connect, yannux, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, ahmedbesbes, ndavis, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, ach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20180430/73f48f59/attachment.html>
More information about the KDEConnect
mailing list