Commit aa0fcb25 authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[lockscreen] Improve the default sizes of media toolbuttons and LockScreen.qml

- Increase the size of next/previous media toolbuttons. I didn't think there was enough padding around the buttons here.

- Set a default width and height of LockScreen.qml. This makes it start with a sane default size when run with qmlscene.


(cherry picked from commit 99475b09)
parent 63ace193
......@@ -33,6 +33,9 @@ Item {
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
implicitWidth: 800
implicitHeight: 600
Loader {
id: mainLoader
......
......@@ -283,6 +283,7 @@ PlasmaCore.ColorScope {
]
Loader {
Layout.topMargin: PlasmaCore.Units.smallSpacing // some distance to the password field
Layout.fillWidth: true
Layout.preferredHeight: item ? item.implicitHeight : 0
active: config.showMediaControls
......
......@@ -26,14 +26,12 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
Item {
visible: mpris2Source.hasPlayer
implicitHeight: controlsRow.height + controlsRow.y
implicitHeight: PlasmaCore.Units.gridUnit * 3
implicitWidth: PlasmaCore.Units.gridUnit * 16
RowLayout {
id: controlsRow
anchors.bottom: parent.bottom
y: units.smallSpacing // some distance to the password field
width: parent.width
height: units.gridUnit * 3
anchors.fill: parent
spacing: 0
enabled: mpris2Source.canControl
......@@ -137,6 +135,8 @@ Item {
PlasmaComponents3.ToolButton {
enabled: mpris2Source.canGoBack
Layout.preferredHeight: PlasmaCore.Units.gridUnit*2
Layout.preferredWidth: Layout.preferredHeight
icon.name: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward"
onClicked: {
fadeoutTimer.running = false
......@@ -159,6 +159,8 @@ Item {
PlasmaComponents3.ToolButton {
enabled: mpris2Source.canGoNext
Layout.preferredHeight: PlasmaCore.Units.gridUnit*2
Layout.preferredWidth: Layout.preferredHeight
icon.name: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward"
onClicked: {
fadeoutTimer.running = false
......
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