Remove interaction with username and password fields on mouse and key press events for background videos
This commit is contained in:
parent
a224269dd5
commit
8282667ef9
41
Main.qml
41
Main.qml
@ -75,23 +75,9 @@ Rectangle {
|
|||||||
id: mouseArea1
|
id: mouseArea1
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
//onPressed: {playlist1.shuffle(); playlist1.next();}
|
//onPressed: {playlist1.shuffle(); playlist1.next();}
|
||||||
onPressed: {
|
onPressed: {}
|
||||||
fader1.state = fader1.state == "off" ? "on" : "off" ;
|
|
||||||
if (config.autofocusInput == "true") {
|
|
||||||
if (username_input_box.text == "")
|
|
||||||
username_input_box.focus = true
|
|
||||||
else
|
|
||||||
password_input_box.focus = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Keys.onPressed: {
|
|
||||||
fader1.state = "on";
|
|
||||||
if (username_input_box.text == "")
|
|
||||||
username_input_box.focus = true
|
|
||||||
else
|
|
||||||
password_input_box.focus = true
|
|
||||||
}
|
}
|
||||||
|
Keys.onPressed: {}
|
||||||
}
|
}
|
||||||
WallpaperFader {
|
WallpaperFader {
|
||||||
id: fader1
|
id: fader1
|
||||||
@ -120,27 +106,10 @@ Rectangle {
|
|||||||
id: mouseArea2
|
id: mouseArea2
|
||||||
enabled: false
|
enabled: false
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
onPressed: {
|
onPressed: {}
|
||||||
fader1.state = fader1.state == "off" ? "on" : "off" ;
|
|
||||||
if (config.autofocusInput == "true") {
|
|
||||||
if (username_input_box.text == "")
|
|
||||||
username_input_box.focus = true
|
|
||||||
else
|
|
||||||
password_input_box.focus = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Behavior on opacity {
|
|
||||||
enabled: true
|
|
||||||
NumberAnimation { easing.type: Easing.InOutQuad; duration: 3000 }
|
|
||||||
}
|
|
||||||
Keys.onPressed: {
|
|
||||||
fader2.state = "on";
|
|
||||||
if (username_input_box.text == "")
|
|
||||||
username_input_box.focus = true
|
|
||||||
else
|
|
||||||
password_input_box.focus = true
|
|
||||||
}
|
}
|
||||||
|
Behavior on opacity {}
|
||||||
|
Keys.onPressed: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
WallpaperFader {
|
WallpaperFader {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user