Commit 7878c998 authored by David Edmundson's avatar David Edmundson

Add config for the lockscreen to toggle media controls

Summary: See related patch to kscreenlocker

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent fd7d1ca3
......@@ -180,7 +180,7 @@ PlasmaCore.ColorScope {
Loader {
Layout.fillWidth: true
Layout.preferredHeight: item ? item.implicitHeight : 0
active: true // TODO configurable
active: config.showMediaControls
source: "MediaControls.qml"
import QtQuick 2.4
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.core 2.0 as Plasmacore
RowLayout {
property alias cfg_showMediaControls: showMediaControls.checked
spacing: units.largeSpacing / 2
Label {
Layout.minimumWidth: formAlignment - units.largeSpacing //to match wallpaper config...
horizontalAlignment: Text.AlignRight
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Show media controls:")
CheckBox {
id: showMediaControls
Item {
Layout.fillWidth: true
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns=""
xsi:schemaLocation="" >
<kcfgfile name=""/>
<group name="General">
<entry name="showMediaControls" type="Bool">
<label>If true, shows any currently playing media along with controls to pause it.</label>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment