Fixup the sfos mpris control
ClosedPublic

Authored by piggz on Aug 2 2018, 10:02 PM.

Details

Summary

-Fix type in pause icon
-Remove unnescessary label
-Size volumne slider correctly
-Centre buttons
-Make volume control work

Diff Detail

Repository
R224 KDE Connect
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
piggz created this revision.Aug 2 2018, 10:02 PM
Restricted Application added a project: KDE Connect. · View Herald TranscriptAug 2 2018, 10:02 PM
Restricted Application added a subscriber: kdeconnect. · View Herald Transcript
piggz requested review of this revision.Aug 2 2018, 10:02 PM
apol added a subscriber: apol.Aug 2 2018, 10:08 PM

In any case, feel free to push directly to the sfos parts of kdeconnect, I don't think we have the know-how in the team to review properly.
Also feel free to find someone who knows sailfish to review, that would work as well.

sfos/qml/pages/mpris.qml
44

Usually using the declarative API is better.

81–82

Maybe use RowLayout?

piggz added inline comments.Aug 3 2018, 6:15 AM
sfos/qml/pages/mpris.qml
44

where is the declarative api defined?

81–82

after all this time, i thought rowlayout wasnt available in sfos, but after some research it is!

apol added inline comments.Aug 3 2018, 11:21 AM
sfos/qml/pages/mpris.qml
81–82

yeah, it's what you had before, so I guess it's not working well?
by declarative api I mean defining the property instead of initialising it onCompleted:.

piggz added inline comments.Aug 3 2018, 11:26 AM
sfos/qml/pages/mpris.qml
81–82

no, i was using Row before, not RowLayout .... i will try RowLayout later.

When i bound the slider.value to the pluginInterface.volume, i found that the slider jumped around for a few seconds after opening the page, ill have a play around and see what works best

piggz updated this revision to Diff 39040.Aug 3 2018, 9:48 PM
  • Enable mpriscontrol also on sailfish
  • Add features from kde app mpris control and use QtQuick Layouts
  • Add layouts to .spec
piggz marked 4 inline comments as done.
albertvaka accepted this revision.Aug 12 2018, 9:04 AM
albertvaka added a subscriber: albertvaka.

As Aleix mentioned, feel free to push changes to the sfos/ directory without review if you want.

It's really good to have the sfos port in the same repository and to share code, but most of the time we can't really help you with the sfos-specific parts and it will just make your development slower.

This revision is now accepted and ready to land.Aug 12 2018, 9:04 AM
apol added inline comments.Aug 12 2018, 9:20 AM
sfos/qml/pages/mpris.qml
44

I mean it's usually better to do:
value: something.value than the whole onCompleted: value = something.value and onSomethingValueChanged: value = something.value.

Not that you need to use a different library or something.

This revision was automatically updated to reflect the committed changes.