Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
86de220f
Commit
86de220f
authored
Jan 23, 2015
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39 from locusf/master
Version 0.25
parents
aad959f3
9d568806
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
111 additions
and
34 deletions
+111
-34
lipstick-glacier-home-qt5.spec
rpm/lipstick-glacier-home-qt5.spec
+1
-1
lipstick-glacier-home-qt5.yaml
rpm/lipstick-glacier-home-qt5.yaml
+1
-1
AppLauncher.qml
src/qml/AppLauncher.qml
+4
-4
DeviceLock.qml
src/qml/DeviceLock.qml
+52
-0
Lockscreen.qml
src/qml/Lockscreen.qml
+8
-0
NumButton.qml
src/qml/NumButton.qml
+20
-6
SimPanel.qml
src/qml/SimPanel.qml
+20
-20
compositor.qml
src/qml/compositor.qml
+1
-0
src.pro
src/src.pro
+4
-2
No files found.
rpm/lipstick-glacier-home-qt5.spec
View file @
86de220f
...
...
@@ -9,7 +9,7 @@ Name: lipstick-glacier-home-qt5
# << macros
Summary: A nice homescreen for Glacier experience
Version: 0.2
4
Version: 0.2
5
Release: 1
Group: System/GUI/Other
License: BSD
...
...
rpm/lipstick-glacier-home-qt5.yaml
View file @
86de220f
Name
:
lipstick-glacier-home-qt5
Summary
:
A nice homescreen for Glacier experience
Version
:
0.2
4
Version
:
0.2
5
Release
:
1
Group
:
System/GUI/Other
License
:
BSD
...
...
src/qml/AppLauncher.qml
View file @
86de220f
...
...
@@ -56,13 +56,13 @@ GridView {
property
alias
uninstall
:
uninstall
Rectangle
{
id
:
remove
property
alias
text
:
lb
l
.
text
property
alias
text
:
removeLabe
l
.
text
visible
:
onUninstall
height
:
110
color
:
"
red
"
width
:
gridview
.
width
/
2
Label
{
id
:
lb
l
id
:
removeLabe
l
anchors.centerIn
:
parent
text
:
"
Remove
"
font.pointSize
:
8
...
...
@@ -70,14 +70,14 @@ GridView {
}
Rectangle
{
id
:
uninstall
property
alias
text
:
lbl2
.
text
property
alias
text
:
uninstallLabel
.
text
anchors.left
:
remove
.
right
visible
:
onUninstall
color
:
"
red
"
width
:
gridview
.
width
/
2
height
:
110
Label
{
id
:
lbl2
id
:
uninstallLabel
anchors.centerIn
:
parent
text
:
"
Uninstall
"
font.pointSize
:
8
...
...
src/qml/DeviceLock.qml
0 → 100644
View file @
86de220f
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
=
""
}
}
}
}
}
}
}
}
src/qml/Lockscreen.qml
View file @
86de220f
...
...
@@ -6,12 +6,20 @@ Image {
visible
:
LipstickSettings
.
lockscreenVisible
LockscreenClock
{
id
:
clock
anchors
{
top
:
parent
.
top
left
:
parent
.
left
right
:
parent
.
right
}
}
DeviceLock
{
id
:
deviceLockUI
anchors.fill
:
parent
visible
:
deviceLock
.
state
===
1
z
:
201
}
MouseArea
{
anchors.fill
:
parent
}
...
...
src/qml/NumButton.qml
View file @
86de220f
...
...
@@ -28,15 +28,29 @@
** 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
.
Styles
.
Nemo
1.0
import
QtQuick
.
Layouts
1.0
Button
{
Rectangle
{
id
:
btn
width
:
120
height
:
40
Layout.fillWidth
:
true
Layout.fillHeight
:
true
color
:
"
transparent
"
border.color
:
"
white
"
property
alias
text
:
txt
.
text
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
pinquery
.
text
+=
btn
.
text
}
}
Text
{
id
:
txt
anchors.centerIn
:
parent
color
:
"
white
"
}
}
src/qml/SimPanel.qml
View file @
86de220f
...
...
@@ -33,6 +33,7 @@ import QtQuick 2.1
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
MeeGo
.
QOfono
0.2
import
QtQuick
.
Layouts
1.0
Component
{
CommonPanel
{
...
...
@@ -57,21 +58,25 @@ Component {
id
:
simManager
}
Column
{
Column
Layout
{
visible
:
needsPin
spacing
:
10
Row
{
anchors.fill
:
simpanel
spacing
:
0
RowLayout
{
spacing
:
16
TextField
{
id
:
pinquery
width
:
180
height
:
40
width
:
140
Layout.fillWidth
:
true
Layout.fillHeight
:
false
Layout.preferredHeight
:
20
}
Button
{
id
:
pinenter
text
:
"
OK
"
width
:
120
height
:
40
Layout.fillWidth
:
true
Layout.fillHeight
:
false
Layout.preferredHeight
:
40
onClicked
:
{
simManager
.
enterPin
(
OfonoSimManager
.
SimPin
,
pinquery
.
text
)
pinquery
.
text
=
""
...
...
@@ -80,15 +85,18 @@ Component {
Button
{
id
:
clearpin
text
:
"
Clear
"
width
:
120
height
:
40
Layout.fillWidth
:
true
Layout.fillHeight
:
false
Layout.preferredHeight
:
40
onClicked
:
{
pinquery
.
text
=
""
}
}
}
Row
{
spacing
:
16
GridLayout
{
columnSpacing
:
10
rowSpacing
:
10
columns
:
3
NumButton
{
text
:
"
1
"
}
...
...
@@ -98,9 +106,6 @@ Component {
NumButton
{
text
:
"
3
"
}
}
Row
{
spacing
:
16
NumButton
{
text
:
"
4
"
}
...
...
@@ -110,9 +115,6 @@ Component {
NumButton
{
text
:
"
6
"
}
}
Row
{
spacing
:
16
NumButton
{
text
:
"
7
"
}
...
...
@@ -122,10 +124,8 @@ Component {
NumButton
{
text
:
"
9
"
}
}
Row
{
spacing
:
16
NumButton
{
Layout.columnSpan
:
3
text
:
"
0
"
}
}
...
...
src/qml/compositor.qml
View file @
86de220f
...
...
@@ -133,6 +133,7 @@ Compositor {
property
real
lockThreshold
:
0.25
property
int
lockscreenX
property
int
lockscreenY
enabled
:
deviceLock
.
state
===
0
onGestureStarted
:
{
swipeAnimation
.
stop
()
...
...
src/src.pro
View file @
86de220f
...
...
@@ -35,7 +35,8 @@ qml.files = qml/MainScreen.qml \
qml
/
BatteryPanel
.
qml
\
qml
/
CommonPanel
.
qml
\
qml
/
ShutdownScreen
.
qml
\
qml
/
GlacierRotation
.
qml
qml
/
GlacierRotation
.
qml
\
qml
/
DeviceLock
.
qml
qmlcompositor
.
path
=
/
usr
/
share
/
lipstick
-
glacier
-
home
-
qt5
/
qml
/
compositor
qmlcompositor
.
files
=
qml
/
compositor
/
WindowWrapperMystic
.
qml
\
...
...
@@ -107,6 +108,7 @@ OTHER_FILES += qml/*.qml \
qml/BatteryPanel.qml \
qml/CommonPanel.qml \
qml/ShutdownScreen.qml \
qml/GlacierRotation.qml
qml/GlacierRotation.qml \
qml/DeviceLock.qml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment