mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 10:23:30 +02:00
adding background image
This commit is contained in:
parent
ea325acef9
commit
206c1d5b53
5 changed files with 25 additions and 1 deletions
|
@ -20,7 +20,8 @@ FocusScope {
|
||||||
id: root
|
id: root
|
||||||
HifiStylesUit.HifiConstants { id: hifi }
|
HifiStylesUit.HifiConstants { id: hifi }
|
||||||
objectName: "LoginDialog"
|
objectName: "LoginDialog"
|
||||||
visible: true
|
property bool shown: true
|
||||||
|
visible: shown
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
@ -49,6 +50,13 @@ FocusScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
id: loginDialogBackground
|
||||||
|
source: "LoginDialog/background.png"
|
||||||
|
anchors.fill: parent
|
||||||
|
z: -2
|
||||||
|
}
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: {
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
return
|
return
|
||||||
|
|
|
@ -215,6 +215,7 @@ Item {
|
||||||
}
|
}
|
||||||
onFocusChanged: {
|
onFocusChanged: {
|
||||||
root.text = "";
|
root.text = "";
|
||||||
|
root.isPassword = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,6 +264,7 @@ Item {
|
||||||
}
|
}
|
||||||
onFocusChanged: {
|
onFocusChanged: {
|
||||||
root.text = "";
|
root.text = "";
|
||||||
|
root.isPassword = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HifiControlsUit.TextField {
|
HifiControlsUit.TextField {
|
||||||
|
|
BIN
interface/resources/qml/LoginDialog/background.png
Normal file
BIN
interface/resources/qml/LoginDialog/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -50,6 +50,13 @@ FocusScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
id: loginDialogBackground
|
||||||
|
source: "LoginDialog/background.png"
|
||||||
|
anchors.fill: parent
|
||||||
|
z: -2
|
||||||
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: keyboardTimer
|
id: keyboardTimer
|
||||||
repeat: false
|
repeat: false
|
||||||
|
|
|
@ -89,6 +89,13 @@ FocusScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
id: loginDialogBackground
|
||||||
|
source: "../LoginDialog/background.png"
|
||||||
|
anchors.fill: parent
|
||||||
|
z: -2
|
||||||
|
}
|
||||||
|
|
||||||
HifiControlsUit.Keyboard {
|
HifiControlsUit.Keyboard {
|
||||||
id: loginKeyboard
|
id: loginKeyboard
|
||||||
raised: root.keyboardEnabled && root.keyboardRaised
|
raised: root.keyboardEnabled && root.keyboardRaised
|
||||||
|
|
Loading…
Reference in a new issue