mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreens/halcyon: Make back button clickable
This commit is contained in:
parent
cb71a7779f
commit
c3fd538dd5
1 changed files with 32 additions and 13 deletions
|
|
@ -52,11 +52,28 @@ MobileShell.GridView {
|
|||
}
|
||||
}
|
||||
contentItem: RowLayout {
|
||||
spacing: PlasmaCore.Units.gridUnit
|
||||
Kirigami.Icon {
|
||||
spacing: PlasmaCore.Units.smallSpacing * 2
|
||||
|
||||
// close button
|
||||
MouseArea {
|
||||
id: button
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.preferredHeight: PlasmaCore.Units.iconSizes.small
|
||||
Layout.preferredWidth: PlasmaCore.Units.iconSizes.small
|
||||
implicitHeight: PlasmaCore.Units.iconSizes.small + PlasmaCore.Units.largeSpacing
|
||||
implicitWidth: PlasmaCore.Units.iconSizes.small + PlasmaCore.Units.largeSpacing
|
||||
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: root.closeRequested()
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Qt.rgba(255, 255, 255, button.pressed ? 0.2 : 0)
|
||||
radius: button.width / 2
|
||||
}
|
||||
|
||||
Kirigami.Icon {
|
||||
anchors.centerIn: parent
|
||||
implicitHeight: PlasmaCore.Units.iconSizes.small
|
||||
implicitWidth: PlasmaCore.Units.iconSizes.small
|
||||
isMask: true
|
||||
color: 'white'
|
||||
source: 'arrow-left'
|
||||
|
|
@ -69,6 +86,8 @@ MobileShell.GridView {
|
|||
color: Qt.rgba(0, 0, 0, 0.5)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QQC2.Label {
|
||||
Layout.fillWidth: true
|
||||
text: root.folderName
|
||||
|
|
|
|||
Loading…
Reference in a new issue