Update: Added ability to change virtual keyboard position and fixed ScreenPadding when virtual keyboard is enabled.

This commit is contained in:
Keyitdev
2024-10-05 17:51:23 +02:00
parent 9f38ce4372
commit 44fb2ff228
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -140,7 +140,11 @@ Pane {
property bool keyboardActive: item ? item.active : false property bool keyboardActive: item ? item.active : false
// x * 0.4 = x / 2.5 // x * 0.4 = x / 2.5
width: config.KeyboardSize == "" ? parent.width * 0.4 : parent.width * config.KeyboardSize width: config.KeyboardSize == "" ? parent.width * 0.4 : parent.width * config.KeyboardSize
anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom
anchors.left: config.VirtualKeyboardPosition == "left" ? parent.left : undefined;
anchors.horizontalCenter: config.VirtualKeyboardPosition == "center" ? parent.horizontalCenter : undefined;
anchors.right: config.VirtualKeyboardPosition == "right" ? parent.right : undefined;
z: 1 z: 1
function switchState() { state = state == "hidden" ? "visible" : "hidden"} function switchState() { state = state == "hidden" ? "visible" : "hidden"}
states: [ states: [
+5 -1
View File
@@ -5,7 +5,6 @@ ScreenWidth="1920"
ScreenHeight="1080" ScreenHeight="1080"
ScreenPadding="" ScreenPadding=""
# Default 0, Options: from 0 to min(screen width/2,screen height/2). # Default 0, Options: from 0 to min(screen width/2,screen height/2).
# Currently breaks virtual keyboard.
Font="Open Sans" Font="Open Sans"
FontSize="" FontSize=""
@@ -87,6 +86,11 @@ HaveFormBackground="false"
FormPosition="center" FormPosition="center"
# Default: left, Options: left, center, right. # Default: left, Options: left, center, right.
#################### Virtual Keyboard ####################
VirtualKeyboardPosition="center"
# Default: left, Options: left, center, right.
#################### Interface Behavior #################### #################### Interface Behavior ####################
HideVirtualKeyboard="false" HideVirtualKeyboard="false"