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: [
|
||||
|
||||
+5
-1
@@ -5,7 +5,6 @@ ScreenWidth="1920"
|
||||
ScreenHeight="1080"
|
||||
ScreenPadding=""
|
||||
# Default 0, Options: from 0 to min(screen width/2,screen height/2).
|
||||
# Currently breaks virtual keyboard.
|
||||
|
||||
Font="Open Sans"
|
||||
FontSize=""
|
||||
@@ -87,6 +86,11 @@ HaveFormBackground="false"
|
||||
FormPosition="center"
|
||||
# Default: left, Options: left, center, right.
|
||||
|
||||
#################### Virtual Keyboard ####################
|
||||
|
||||
VirtualKeyboardPosition="center"
|
||||
# Default: left, Options: left, center, right.
|
||||
|
||||
#################### Interface Behavior ####################
|
||||
|
||||
HideVirtualKeyboard="false"
|
||||
|
||||
Reference in New Issue
Block a user