mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +00:00
Fix media controls on lockscreen not working
This commit is contained in:
parent
3e1471255a
commit
834a4a7108
2 changed files with 2 additions and 3 deletions
|
|
@ -95,6 +95,7 @@ PlasmaCore.ColorScope {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: phoneClockComponent
|
id: phoneClockComponent
|
||||||
visible: !isWidescreen
|
visible: !isWidescreen
|
||||||
|
z: passwordFlickable.contentY === 0 ? 5 : 0 // in front of password flickable when closed
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
|
@ -129,7 +130,6 @@ PlasmaCore.ColorScope {
|
||||||
Layout.minimumWidth: units.gridUnit * 15
|
Layout.minimumWidth: units.gridUnit * 15
|
||||||
Layout.leftMargin: units.gridUnit
|
Layout.leftMargin: units.gridUnit
|
||||||
Layout.rightMargin: units.gridUnit
|
Layout.rightMargin: units.gridUnit
|
||||||
z: 5
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -144,6 +144,7 @@ PlasmaCore.ColorScope {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: units.gridUnit * 3
|
leftMargin: units.gridUnit * 3
|
||||||
}
|
}
|
||||||
|
z: passwordFlickable.contentY === 0 ? 5 : 0 // in front of password flickable when closed
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: tabletLayout
|
id: tabletLayout
|
||||||
|
|
@ -162,7 +163,6 @@ PlasmaCore.ColorScope {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: units.gridUnit * 25
|
Layout.maximumWidth: units.gridUnit * 25
|
||||||
Layout.minimumWidth: units.gridUnit * 20
|
Layout.minimumWidth: units.gridUnit * 20
|
||||||
z: 5
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,6 @@ Item {
|
||||||
Layout.preferredWidth: height // make this button bigger
|
Layout.preferredWidth: height // make this button bigger
|
||||||
icon.name: mpris2Source.playing ? "media-playback-pause" : "media-playback-start"
|
icon.name: mpris2Source.playing ? "media-playback-pause" : "media-playback-start"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
console.log("Fooo");
|
|
||||||
// fadeoutTimer.running = false
|
// fadeoutTimer.running = false
|
||||||
mpris2Source.playPause()
|
mpris2Source.playPause()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue