fully working blur
This commit is contained in:
41
Main.qml
41
Main.qml
@@ -67,16 +67,25 @@ Rectangle {
|
|||||||
id: mouseArea1
|
id: mouseArea1
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
//onPressed: {playlist1.shuffle(); playlist1.next();}
|
//onPressed: {playlist1.shuffle(); playlist1.next();}
|
||||||
onPressed: { fader.state = fader.state == "off" ? "on" : "off" ; }
|
onPressed: { fader1.state = fader1.state == "off" ? "on" : "off" ; }
|
||||||
}
|
}
|
||||||
Keys.onPressed: {
|
Keys.onPressed: {
|
||||||
fader.state = "on";
|
fader1.state = "on";
|
||||||
if (username_input_box.text == "")
|
if (username_input_box.text == "")
|
||||||
username_input_box.focus = true
|
username_input_box.focus = true
|
||||||
else
|
else
|
||||||
password_input_box.focus = true
|
password_input_box.focus = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
WallpaperFader {
|
||||||
|
id: fader1
|
||||||
|
visible: true
|
||||||
|
anchors.fill: parent
|
||||||
|
state: "off"
|
||||||
|
source: video1
|
||||||
|
mainStack: login_container
|
||||||
|
footer: login_container
|
||||||
|
}
|
||||||
|
|
||||||
// Set Background Video2
|
// Set Background Video2
|
||||||
MediaPlayer {
|
MediaPlayer {
|
||||||
@@ -97,12 +106,29 @@ Rectangle {
|
|||||||
id: mouseArea2
|
id: mouseArea2
|
||||||
enabled: false
|
enabled: false
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
onPressed: {playlist2.shuffle(); playlist2.next();}
|
onPressed: { fader2.state = fader2.state == "off" ? "on" : "off" ; }
|
||||||
}
|
}
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
enabled: true
|
enabled: true
|
||||||
NumberAnimation { easing.type: Easing.InOutQuad; duration: 3000 }
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
WallpaperFader {
|
||||||
|
id: fader2
|
||||||
|
visible: true
|
||||||
|
anchors.fill: parent
|
||||||
|
state: "off"
|
||||||
|
source: video2
|
||||||
|
mainStack: login_container
|
||||||
|
footer: login_container
|
||||||
}
|
}
|
||||||
|
|
||||||
property MediaPlayer currentPlayer: mediaplayer1
|
property MediaPlayer currentPlayer: mediaplayer1
|
||||||
@@ -146,15 +172,6 @@ Rectangle {
|
|||||||
mediaplayer2.stop()
|
mediaplayer2.stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
WallpaperFader {
|
|
||||||
id: fader
|
|
||||||
visible: true
|
|
||||||
anchors.fill: parent
|
|
||||||
state: "off"
|
|
||||||
source: video1
|
|
||||||
mainStack: login_container
|
|
||||||
footer: login_container
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user