We have moved to a new Sailfish OS Forum. Please start new discussions there.
18

Add gray buttons for media controls on lock screen when they are inactive

asked 2015-09-12 13:35:07 +0300

AliN gravatar image

updated 2015-09-12 17:39:56 +0300

I think it looks better to have inactive gray buttons instead of not having them at all.

Currently while playing the last song of a list, the media next button disappears off the lock screen media controls which looks ugly. Also the previous button while playing few first seconds of the first song.

media next button disappears

edit retag flag offensive close delete

Comments

1

I use QuasarMx, and in this case previous and next buttons are missed

carmenfdezb ( 2015-09-12 14:05:05 +0300 )edit
1

I doubt it's a bug.

Spam Hunter ( 2015-09-12 15:07:32 +0300 )edit

Why not, @Markkyboy? I can't switch to next or previous song

carmenfdezb ( 2015-09-12 15:51:39 +0300 )edit
1

I was responding to AliNa, I just don't see it as a bug, rather a feature.

I don't know about your circumstances @carmenfdezb , In your case, I can only assume you have one track in the album/folder you have chosen to play. AliNa does not mention about not being able to play previous tracks, hence his screen shot, showing 'back' only as there are no more tracks to play in the album/folder. Sounds like you may have a different problem to the one described here.

Spam Hunter ( 2015-09-12 15:56:14 +0300 )edit

@Markkyboy, I doubt either. Mayber it's better to retag this as a feature-request for a gray button.

About the @carmenfdezb's comment, yes, this is the difference between the stock media player and 3rd-party apps like Flow Player and QuasarMx: the 3rd-party ones go to the previous track with that button, but Media app restart the track if it's already played few first seconds. So if you play the first track of a list on the Media app the "previous" button will appear after few seconds played.

AliN ( 2015-09-12 16:12:31 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2015-11-12 02:48:03 +0300

AliN gravatar image

updated 2015-11-30 02:58:35 +0300

Edit: The patch is available on OpenRepos (Warehouse).

As a workaround one can change system files to show inactive media controls on lock screen.

/usr/lib/qt5/qml/Sailfish/Media/MprisControls.qml lines 140 and 187:

    opacity: (mprisPlayerControls.pauseEnabled || mprisPlayerControls.playEnabled) ? 1.0 : 0.0

Inactive media controls

Working with opacity will give you semi-transparent buttons when inactive. If you change the variable "enabled" on lines 139 and 186 instead, you will always have full-opacity buttons even when they're inactive.

Thanks to the patch Show album's art on lockscreen!

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-09-12 13:35:07 +0300

Seen: 434 times

Last updated: Nov 30 '15