mirror of
https://github.com/Keyitdev/sddm-astronaut-theme.git
synced 2026-09-24 02:22:09 +00:00
Update: Added ability to change virtual keyboard position and fixed ScreenPadding when virtual keyboard is enabled.
This commit is contained in:
@@ -140,7 +140,11 @@ Pane {
|
||||
property bool keyboardActive: item ? item.active : false
|
||||
// x * 0.4 = x / 2.5
|
||||
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
|
||||
function switchState() { state = state == "hidden" ? "visible" : "hidden"}
|
||||
states: [
|
||||
|
||||
Reference in New Issue
Block a user