Commit 86de220f authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

Merge pull request #39 from locusf/master

Version 0.25
parents aad959f3 9d568806
...@@ -9,7 +9,7 @@ Name: lipstick-glacier-home-qt5 ...@@ -9,7 +9,7 @@ Name: lipstick-glacier-home-qt5
# << macros # << macros
Summary: A nice homescreen for Glacier experience Summary: A nice homescreen for Glacier experience
Version: 0.24 Version: 0.25
Release: 1 Release: 1
Group: System/GUI/Other Group: System/GUI/Other
License: BSD License: BSD
......
Name: lipstick-glacier-home-qt5 Name: lipstick-glacier-home-qt5
Summary: A nice homescreen for Glacier experience Summary: A nice homescreen for Glacier experience
Version: 0.24 Version: 0.25
Release: 1 Release: 1
Group: System/GUI/Other Group: System/GUI/Other
License: BSD License: BSD
......
...@@ -56,13 +56,13 @@ GridView { ...@@ -56,13 +56,13 @@ GridView {
property alias uninstall: uninstall property alias uninstall: uninstall
Rectangle { Rectangle {
id: remove id: remove
property alias text: lbl.text property alias text: removeLabel.text
visible: onUninstall visible: onUninstall
height: 110 height: 110
color: "red" color: "red"
width: gridview.width / 2 width: gridview.width / 2
Label { Label {
id: lbl id: removeLabel
anchors.centerIn: parent anchors.centerIn: parent
text: "Remove" text: "Remove"
font.pointSize: 8 font.pointSize: 8
...@@ -70,14 +70,14 @@ GridView { ...@@ -70,14 +70,14 @@ GridView {
} }
Rectangle { Rectangle {
id: uninstall id: uninstall
property alias text: lbl2.text property alias text: uninstallLabel.text
anchors.left: remove.right anchors.left: remove.right
visible: onUninstall visible: onUninstall
color: "red" color: "red"
width: gridview.width / 2 width: gridview.width / 2
height: 110 height: 110
Label { Label {
id: lbl2 id: uninstallLabel
anchors.centerIn: parent anchors.centerIn: parent
text: "Uninstall" text: "Uninstall"
font.pointSize: 8 font.pointSize: 8
......
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
import QtQuick.Layouts 1.0
Item {
id: root
anchors.top: clock.bottom
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
ColumnLayout {
anchors.fill: parent
spacing: 40
TextField {
id: lockCodeField
readOnly: true
echoMode: TextInput.PasswordEchoOnEdit
}
GridLayout {
height: parent.height
width: parent.width
columns: 3
Repeater {
model: ["1","2","3","4","5","6","7","8","9","Ca","0","OK"]
delegate:
Button {
Layout.fillWidth: true
text: modelData
onClicked: {
if (text !== "Ca" && text !== "OK") {
lockCodeField.insert(lockCodeField.cursorPosition, text)
} else {
if (text === "OK") {
if(deviceLock.checkCode(lockCodeField.text)) {
deviceLock.setState(0)
lockCodeField.text = ""
} else {
lockCodeField.text = ""
}
} else if (text === "Ca"){
lockCodeField.text = ""
}
}
}
}
}
}
}
}
...@@ -6,12 +6,20 @@ Image { ...@@ -6,12 +6,20 @@ Image {
visible: LipstickSettings.lockscreenVisible visible: LipstickSettings.lockscreenVisible
LockscreenClock { LockscreenClock {
id: clock
anchors { anchors {
top: parent.top top: parent.top
left: parent.left left: parent.left
right: parent.right right: parent.right
} }
} }
DeviceLock {
id: deviceLockUI
anchors.fill: parent
visible: deviceLock.state === 1
z: 201
}
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
} }
......
...@@ -28,15 +28,29 @@ ...@@ -28,15 +28,29 @@
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
** **
****************************************************************************************/ ****************************************************************************************/
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Controls.Nemo 1.0 import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0 import QtQuick.Controls.Styles.Nemo 1.0
import QtQuick.Layouts 1.0
Button { Rectangle {
id: btn id: btn
width: 120 Layout.fillWidth: true
height: 40 Layout.fillHeight: true
color: "transparent"
border.color: "white"
property alias text: txt.text
MouseArea {
anchors.fill: parent
onClicked: { onClicked: {
pinquery.text += btn.text pinquery.text += btn.text
} }
}
Text {
id: txt
anchors.centerIn: parent
color: "white"
}
} }
...@@ -33,6 +33,7 @@ import QtQuick 2.1 ...@@ -33,6 +33,7 @@ import QtQuick 2.1
import QtQuick.Controls.Nemo 1.0 import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0 import QtQuick.Controls.Styles.Nemo 1.0
import MeeGo.QOfono 0.2 import MeeGo.QOfono 0.2
import QtQuick.Layouts 1.0
Component { Component {
CommonPanel { CommonPanel {
...@@ -57,21 +58,25 @@ Component { ...@@ -57,21 +58,25 @@ Component {
id: simManager id: simManager
} }
Column { ColumnLayout {
visible: needsPin visible: needsPin
spacing: 10 anchors.fill: simpanel
Row { spacing: 0
RowLayout {
spacing: 16 spacing: 16
TextField { TextField {
id: pinquery id: pinquery
width: 180 width: 140
height: 40 Layout.fillWidth: true
Layout.fillHeight: false
Layout.preferredHeight: 20
} }
Button { Button {
id: pinenter id: pinenter
text: "OK" text: "OK"
width: 120 Layout.fillWidth: true
height: 40 Layout.fillHeight: false
Layout.preferredHeight: 40
onClicked: { onClicked: {
simManager.enterPin(OfonoSimManager.SimPin, pinquery.text) simManager.enterPin(OfonoSimManager.SimPin, pinquery.text)
pinquery.text = "" pinquery.text = ""
...@@ -80,15 +85,18 @@ Component { ...@@ -80,15 +85,18 @@ Component {
Button { Button {
id: clearpin id: clearpin
text: "Clear" text: "Clear"
width: 120 Layout.fillWidth: true
height: 40 Layout.fillHeight: false
Layout.preferredHeight: 40
onClicked: { onClicked: {
pinquery.text = "" pinquery.text = ""
} }
} }
} }
Row { GridLayout {
spacing: 16 columnSpacing: 10
rowSpacing: 10
columns: 3
NumButton { NumButton {
text: "1" text: "1"
} }
...@@ -98,9 +106,6 @@ Component { ...@@ -98,9 +106,6 @@ Component {
NumButton { NumButton {
text: "3" text: "3"
} }
}
Row {
spacing: 16
NumButton { NumButton {
text: "4" text: "4"
} }
...@@ -110,9 +115,6 @@ Component { ...@@ -110,9 +115,6 @@ Component {
NumButton { NumButton {
text: "6" text: "6"
} }
}
Row {
spacing: 16
NumButton { NumButton {
text: "7" text: "7"
} }
...@@ -122,10 +124,8 @@ Component { ...@@ -122,10 +124,8 @@ Component {
NumButton { NumButton {
text: "9" text: "9"
} }
}
Row {
spacing: 16
NumButton { NumButton {
Layout.columnSpan: 3
text: "0" text: "0"
} }
} }
......
...@@ -133,6 +133,7 @@ Compositor { ...@@ -133,6 +133,7 @@ Compositor {
property real lockThreshold: 0.25 property real lockThreshold: 0.25
property int lockscreenX property int lockscreenX
property int lockscreenY property int lockscreenY
enabled: deviceLock.state === 0
onGestureStarted: { onGestureStarted: {
swipeAnimation.stop() swipeAnimation.stop()
......
...@@ -35,7 +35,8 @@ qml.files = qml/MainScreen.qml \ ...@@ -35,7 +35,8 @@ qml.files = qml/MainScreen.qml \
qml/BatteryPanel.qml \ qml/BatteryPanel.qml \
qml/CommonPanel.qml \ qml/CommonPanel.qml \
qml/ShutdownScreen.qml \ qml/ShutdownScreen.qml \
qml/GlacierRotation.qml qml/GlacierRotation.qml \
qml/DeviceLock.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 \
...@@ -107,6 +108,7 @@ OTHER_FILES += qml/*.qml \ ...@@ -107,6 +108,7 @@ OTHER_FILES += qml/*.qml \
qml/BatteryPanel.qml \ qml/BatteryPanel.qml \
qml/CommonPanel.qml \ qml/CommonPanel.qml \
qml/ShutdownScreen.qml \ qml/ShutdownScreen.qml \
qml/GlacierRotation.qml qml/GlacierRotation.qml \
qml/DeviceLock.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