D16962: Add mute button with dynamic icon to MPRIS volume control
Kai Uwe Broulik
noreply at phabricator.kde.org
Tue Nov 20 08:07:59 GMT 2018
broulik added inline comments.
INLINE COMMENTS
> blaws wrote in mpris.qml:125
> How would I do that?
Button {
...
icon.name: muted ? "audio-volume-muted" : soundState(root.pluginInterface.volume)
...
}
as well as
Slider {
...
enabled: !muted
...
}
and then just keep
onClicked: {
muted = !muted
root.pluginInterface.volume = muted ? 0 : volumeUnmuted
}
REPOSITORY
R224 KDE Connect
REVISION DETAIL
https://phabricator.kde.org/D16962
To: blaws, #kde_connect
Cc: broulik, albertvaka, nicolasfella, kdeconnect, shivanshukantprasad, skymoore, wistak, dvalencia, rmenezes, julioc, Leptopoda, timothyc, jdvr, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, mikesomov, tctara, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20181120/23f39542/attachment.html>
More information about the KDEConnect
mailing list