Commit 22a9ece3 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[system] Shutdown screen.

parent 2343f3db
import QtQuick 2.0
import QtQuick.Window 2.0
import org.nemomobile.lipstick 0.1
Rectangle {
id: shutdownWindow
width: Screen.width
height: Screen.height
color: "black"
property bool shouldVisible
opacity: shutdownScreen.windowVisible
Image {
anchors.centerIn: parent
source: shutdownMode ? "" : "image://theme/graphic-shutdown-logo"
}
Behavior on opacity {
NumberAnimation {
duration: 500
onRunningChanged: if (!running && shutdownWindow.opacity == 0) shutdownScreen.windowVisible = false
}
}
}
...@@ -33,7 +33,8 @@ qml.files = qml/MainScreen.qml \ ...@@ -33,7 +33,8 @@ qml.files = qml/MainScreen.qml \
qml/Pager.qml \ qml/Pager.qml \
qml/VolumeControl.qml \ qml/VolumeControl.qml \
qml/BatteryPanel.qml \ qml/BatteryPanel.qml \
qml/CommonPanel.qml qml/CommonPanel.qml \
qml/ShutdownScreen.qml
qmlcompositor.path = /usr/share/lipstick-glacier-home-qt5/qml/compositor qmlcompositor.path = /usr/share/lipstick-glacier-home-qt5/qml/compositor
qmlcompositor.files = qml/compositor/WindowWrapperMystic.qml \ qmlcompositor.files = qml/compositor/WindowWrapperMystic.qml \
...@@ -44,7 +45,19 @@ qmlcompositor.files = qml/compositor/WindowWrapperMystic.qml \ ...@@ -44,7 +45,19 @@ qmlcompositor.files = qml/compositor/WindowWrapperMystic.qml \
scripts.path = /usr/share/lipstick-glacier-home-qt5/qml/scripts scripts.path = /usr/share/lipstick-glacier-home-qt5/qml/scripts
scripts.files = qml/scripts/desktop.js scripts.files = qml/scripts/desktop.js
INSTALLS += styles qml qmlcompositor scripts system.path = /usr/share/lipstick-glacier-home-qt5/qml/system
system.files = qml/ShutdownScreen.qml
volumecontrol.path = /usr/share/lipstick-glacier-home-qt5/qml/volumecontrol
volumecontrol.files = qml/VolumeControl.qml
connectivity.path = /usr/share/lipstick-glacier-home-qt5/qml/connectivity
connectivity.files = qml/USBModeSelector.qml
notifications.path = /usr/share/lipstick-glacier-home-qt5/qml/notifications
notifications.files = qml/NotificationPreview.qml
INSTALLS += styles qml qmlcompositor scripts system volumecontrol connectivity notifications
CONFIG += qt link_pkgconfig CONFIG += qt link_pkgconfig
QT += quick compositor QT += quick compositor
...@@ -90,6 +103,7 @@ OTHER_FILES += qml/*.qml \ ...@@ -90,6 +103,7 @@ OTHER_FILES += qml/*.qml \
qml/USBModeSelector.qml \ qml/USBModeSelector.qml \
qml/VolumeControl.qml \ qml/VolumeControl.qml \
qml/BatteryPanel.qml \ qml/BatteryPanel.qml \
qml/CommonPanel.qml qml/CommonPanel.qml \
qml/ShutdownScreen.qml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment