aerothemeplasma/plasma/shells/io.gitgud.wackyideas.desktop/contents/components/VirtualKeyboard.qml
catpswin56 55c892faf4 Shell: rewrite lockscreen + more
SDDM: update for the new AeroShell SDDM KCM
Update installation script to install the new AeroShell SDDM KCM
Look and feel + Shell: switch to AeroShellUtils for the SDDM background
2026-03-14 15:52:32 -03:00

76 lines
2 KiB
QML

/*
SPDX-FileCopyrightText: 2017 Martin Gräßlin <mgraesslin@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick
import QtQuick.VirtualKeyboard
import org.kde.kirigami as Kirigami
import org.kde.plasma.core as PlasmaCore
InputPanel {
id: inputPanel
width: parent.width
property bool activated: false
active: activated && Qt.inputMethod.visible
states: [
State {
name: "visible"
when: inputPanel.active
PropertyChanges {
target: inputPanel
y: inputPanel.parent.height - inputPanel.height
opacity: 1
visible: true
}
},
State {
name: "hidden"
when: !inputPanel.active
PropertyChanges {
target: inputPanel
y: inputPanel.parent.height
opacity: 0
visible:false
}
}
]
transitions: [
Transition {
to: "visible"
ParallelAnimation {
YAnimator {
// NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active
from: inputPanel.parent.height
duration: Kirigami.Units.longDuration
easing.type: Easing.OutQuad
}
OpacityAnimator {
duration: Kirigami.Units.longDuration
easing.type: Easing.OutQuad
}
}
},
Transition {
to: "hidden"
ParallelAnimation {
YAnimator {
duration: Kirigami.Units.longDuration
easing.type: Easing.InQuad
}
OpacityAnimator {
duration: Kirigami.Units.longDuration
easing.type: Easing.InQuad
}
}
}
]
}