@ -414,19 +414,20 @@ PlasmaComponents3.Page {
}
}
Row { / / P l a y e r C o n t r o l s
RowLayout { / / P l a y e r C o n t r o l s
id: playerControls
property bool enabled: root . canControl
property int controlsSize: theme . mSize ( theme . defaultFont ) . height * 3
Layout.alignment: Qt . AlignHCenter
spacing: units . largeSpacing
Layout.bottomMargin: PlasmaCore . Units . largeSpacing
spacing: units . smallSpacing
PlasmaComponents3 . ToolButton { / / P r e v i o u s
anchors.verticalCenter: parent . vertical Center
w idth: expandedRepresentation . controlSize
height: w idth
Layout.alignment: Qt . AlignV Center
implicitW idth: expandedRepresentation . controlSize
implicitHeight: implicitW idth
enabled: playerControls . enabled && root . canGoPrevious
icon.name: LayoutMirroring . enabled ? "media-skip-forward" : "media-skip-backward"
onClicked: {
@ -436,17 +437,18 @@ PlasmaComponents3.Page {
}
PlasmaComponents3 . ToolButton { / / P a u s e / P l a y
width: Math . round ( expandedRepresentation . controlSize * 1.5 )
height: width
Layout.alignment: Qt . AlignVCenter
implicitWidth: Math . round ( expandedRepresentation . controlSize * 1.5 )
implicitHeight: implicitWidth
enabled: root . state == "playing" ? root.canPause : root . canPlay
icon.name: root . state == "playing" ? "media-playback-pause" : "media-playback-start"
onClicked: root . togglePlaying ( )
}
PlasmaComponents3 . ToolButton { / / N e x t
anchors.verticalCenter: parent . vertical Center
w idth: expandedRepresentation . controlSize
height: w idth
Layout.alignment: Qt . AlignV Center
implicitW idth: expandedRepresentation . controlSize
implicitHeight: implicitW idth
enabled: playerControls . enabled && root . canGoNext
icon.name: LayoutMirroring . enabled ? "media-skip-backward" : "media-skip-forward"
onClicked: {