Depends on D12546
Details
Details
- Reviewers
apol mtijink - Group Reviewers
KDE Connect - Commits
- R224:1934585c412f: Use title, album and artist in UI
Look at it
Diff Detail
Diff Detail
- Repository
- R224 KDE Connect
- Branch
- arcpatch-D12552
- Lint
No Linters Available - Unit
No Unit Test Coverage
app/qml/mpris.qml | ||
---|---|---|
53 | text: i18n("%1 - %2", ...) |
app/qml/mpris.qml | ||
---|---|---|
50 | This is weird. When there's a title but no artist you'll se both. Use a visible: !otherThing.visible. |
Comment Actions
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
Comment Actions
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.