diff --git a/Main.qml b/Main.qml index 3f4ab9d..39a2a5b 100644 --- a/Main.qml +++ b/Main.qml @@ -9,6 +9,7 @@ Rectangle id: root color: colors.background property variant geometry: screenModel.geometry(screenModel.primary) + //property bool virtualkeyboard: bool(config.virtualkeyboard) state: "stateUsers" states: @@ -200,12 +201,24 @@ Rectangle id: pageUsers width: areaMain.width height: areaMain.height + y: inputPanel.visible && inputPanel.y != areaMain.height + areaBottom.height ? -150 : 0 Behavior on x { NumberAnimation { duration: 150 } } + Behavior on y { NumberAnimation { duration: 150 } } onLockNav: areaTop.enabled = false onUnlockNav: areaTop.enabled = true } + + Loader { + id: inputPanel + source: "slice/VirtualKeyboard.qml" + width: areaMain.width + y: areaMain.height - 350 - areaBottom.height + Behavior on y { NumberAnimation { duration: 150 } } + //visible: virtualkeyboard + visible: false + } } Item diff --git a/slice/VirtualKeyboard.qml b/slice/VirtualKeyboard.qml new file mode 100644 index 0000000..d107e33 --- /dev/null +++ b/slice/VirtualKeyboard.qml @@ -0,0 +1,7 @@ +import QtQuick 2.7 +import QtQuick.VirtualKeyboard 2.1 + +InputPanel { + id: inputPanel + width: parent.width +} diff --git a/theme.conf b/theme.conf index f72ac50..e39b7d0 100644 --- a/theme.conf +++ b/theme.conf @@ -7,4 +7,4 @@ color_bg=#222222 color_main=#dddddd color_dimmed=#888888 color_contrast=#1f1f1f -manual=false \ No newline at end of file +manual=false