mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-31 08:44:45 +00:00
change design of task scrub indicator UI
This commit is contained in:
parent
39a3625329
commit
7a453425fc
1 changed files with 9 additions and 6 deletions
|
|
@ -437,20 +437,20 @@ FocusScope {
|
||||||
|
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.bottomMargin: taskSwitcherHelpers.openedYPosition * 3 / 4
|
anchors.bottomMargin: taskSwitcherHelpers.openedYPosition * 1 / 4
|
||||||
|
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
id: iconScrubBack
|
id: iconScrubBack
|
||||||
opacity: root.state.currentTaskIndex == 0 ? 0.3 : 1
|
opacity: root.state.currentTaskIndex == 0 ? 0.3 : 1
|
||||||
Behavior on opacity { NumberAnimation { duration: 200} }
|
Behavior on opacity { NumberAnimation { duration: 200} }
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
implicitWidth: Kirigami.Units.iconSizes.small
|
implicitWidth: Kirigami.Units.iconSizes.medium
|
||||||
implicitHeight: Kirigami.Units.iconSizes.small
|
implicitHeight: Kirigami.Units.iconSizes.medium
|
||||||
source: "draw-arrow-back"
|
source: "draw-arrow-back"
|
||||||
color: "white"
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Heading {
|
/*Kirigami.Heading {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: root.width * 0.75
|
Layout.maximumWidth: root.width * 0.75
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -459,6 +459,9 @@ FocusScope {
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
text: i18n("Swipe")
|
text: i18n("Swipe")
|
||||||
|
}*/
|
||||||
|
Item {
|
||||||
|
width: taskSwitcherHelpers.windowWidth / 4
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
|
|
@ -466,8 +469,8 @@ FocusScope {
|
||||||
opacity: root.state.currentTaskIndex == tasksCount - 1 ? 0.3 : 1
|
opacity: root.state.currentTaskIndex == tasksCount - 1 ? 0.3 : 1
|
||||||
Behavior on opacity { NumberAnimation { duration: 200} }
|
Behavior on opacity { NumberAnimation { duration: 200} }
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
implicitWidth: Kirigami.Units.iconSizes.small
|
implicitWidth: Kirigami.Units.iconSizes.medium
|
||||||
implicitHeight: Kirigami.Units.iconSizes.small
|
implicitHeight: Kirigami.Units.iconSizes.medium
|
||||||
source: "draw-arrow-forward"
|
source: "draw-arrow-forward"
|
||||||
color: "white"
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue