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
419a1e79
Commit
419a1e79
authored
Aug 18, 2017
by
Aleksi Suomalainen
Committed by
GitHub
Aug 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #61 from eekkelund/iconSizeLauncher
[AppLauncher] Add IconSizeLauncher
parents
d1263dd6
88359531
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
170 additions
and
67 deletions
+170
-67
AppLauncher.qml
src/qml/AppLauncher.qml
+9
-7
DeviceLockUI.qml
src/qml/DeviceLockUI.qml
+21
-1
LauncherItemDelegate.qml
src/qml/LauncherItemDelegate.qml
+14
-19
LauncherItemFolder.qml
src/qml/LauncherItemFolder.qml
+11
-9
LauncherItemWrapper.qml
src/qml/LauncherItemWrapper.qml
+6
-4
Lockscreen.qml
src/qml/Lockscreen.qml
+74
-14
MainScreen.qml
src/qml/MainScreen.qml
+9
-1
SearchListView.qml
src/qml/SearchListView.qml
+1
-3
Statusbar.qml
src/qml/Statusbar.qml
+1
-1
compositor.qml
src/qml/compositor.qml
+8
-1
NotificationItem.qml
src/qml/notifications/NotificationItem.qml
+13
-6
StatusbarItem.qml
src/qml/statusbar/StatusbarItem.qml
+3
-1
No files found.
src/qml/AppLauncher.qml
View file @
419a1e79
...
@@ -34,17 +34,20 @@ import QtQuick.Controls.Styles.Nemo 1.0
...
@@ -34,17 +34,20 @@ import QtQuick.Controls.Styles.Nemo 1.0
GridView
{
GridView
{
id
:
gridview
id
:
gridview
cellWidth
:
cellSize
width
:
cellWidth
*
columns
cellHeight
:
cellSize
width
:
parent
.
width
cacheBuffer
:
gridview
.
contentHeight
cacheBuffer
:
gridview
.
contentHeight
property
Item
reorderItem
property
Item
reorderItem
property
bool
onUninstall
property
bool
onUninstall
property
alias
deleter
:
deleter
property
alias
deleter
:
deleter
property
var
switcher
:
null
property
var
switcher
:
null
property
string
searchString
property
string
searchString
property
int
minCellSize
:
Theme
.
iconSizeLauncher
+
Theme
.
itemSpacingHuge
property
int
rows
:
Math
.
floor
(
parent
.
height
/
minCellSize
)
property
int
columns
:
Math
.
floor
(
parent
.
width
/
minCellSize
)
cellWidth
:
parent
.
width
/
columns
cellHeight
:
Math
.
round
(
parent
.
height
/
rows
)
property
int
cellSize
:
Math
.
min
(
parent
.
width
,
parent
.
height
)
/
4
property
int
folderIndex
:
-
1
property
int
folderIndex
:
-
1
property
bool
isRootFolder
:
true
property
bool
isRootFolder
:
true
property
bool
newFolderActive
property
bool
newFolderActive
...
@@ -260,12 +263,11 @@ GridView {
...
@@ -260,12 +263,11 @@ GridView {
//Using loader that in the future we can also have widgets as delegate
//Using loader that in the future we can also have widgets as delegate
delegate
:
Loader
{
delegate
:
Loader
{
id
:
loader
id
:
loader
width
:
cell
Size
width
:
cell
Width
height
:
cell
Size
height
:
cell
Height
onXChanged
:
item
.
x
=
x
onXChanged
:
item
.
x
=
x
onYChanged
:
item
.
y
=
y
onYChanged
:
item
.
y
=
y
property
QtObject
modelData
:
model
property
QtObject
modelData
:
model
property
int
cellSize
:
gridview
.
cellHeight
property
int
cellIndex
:
index
property
int
cellIndex
:
index
sourceComponent
:
object
.
type
==
LauncherModel
.
Folder
?
folder
:
app
sourceComponent
:
object
.
type
==
LauncherModel
.
Folder
?
folder
:
app
}
}
...
...
src/qml/DeviceLockUI.qml
View file @
419a1e79
...
@@ -14,6 +14,8 @@ Item {
...
@@ -14,6 +14,8 @@ Item {
property
bool
shouldAuthenticate
:
Lipstick
.
compositor
.
visible
property
bool
shouldAuthenticate
:
Lipstick
.
compositor
.
visible
&&
authenticator
.
availableMethods
!==
0
&&
authenticator
.
availableMethods
!==
0
property
int
remainingAttempts
onShouldAuthenticateChanged
:
{
onShouldAuthenticateChanged
:
{
if
(
shouldAuthenticate
)
{
if
(
shouldAuthenticate
)
{
DeviceLock
.
authorization
.
requestChallenge
()
DeviceLock
.
authorization
.
requestChallenge
()
...
@@ -36,16 +38,18 @@ Item {
...
@@ -36,16 +38,18 @@ Item {
}
}
}
}
Authenticator
{
Authenticator
{
id
:
authenticator
id
:
authenticator
onAuthenticated
:
{
onAuthenticated
:
{
DeviceLock
.
unlock
(
authenticationToken
)
DeviceLock
.
unlock
(
authenticationToken
)
Desktop
.
instance
.
setLockScreen
(
false
)
Desktop
.
instance
.
setLockScreen
(
false
)
Desktop
.
instance
.
codepadVisible
=
false
Desktop
.
instance
.
codepadVisible
=
false
remainingAttempts
=
0
}
}
onFeedback
:
{
onFeedback
:
{
console
.
log
(
'
### still locked
'
,
feedback
,
attemptsRemaining
)
console
.
log
(
'
### still locked
'
,
feedback
,
attemptsRemaining
)
remainingAttempts
=
attemptsRemaining
animation
.
start
()
}
}
}
}
...
@@ -53,6 +57,21 @@ Item {
...
@@ -53,6 +57,21 @@ Item {
anchors.fill
:
parent
anchors.fill
:
parent
spacing
:
Theme
.
itemSpacingLarge
spacing
:
Theme
.
itemSpacingLarge
SequentialAnimation
{
id
:
animation
;
SequentialAnimation
{
loops
:
4
NumberAnimation
{
target
:
codePad
;
property
:
"
anchors.horizontalCenterOffset
"
;
to
:
55
;
duration
:
50
}
NumberAnimation
{
target
:
codePad
;
property
:
"
anchors.horizontalCenterOffset
"
;
to
:
0
;
duration
:
50
}
}
NumberAnimation
{
target
:
codePad
;
property
:
"
anchors.horizontalCenterOffset
"
;
to
:
0
;
duration
:
100
}
}
Label
{
font.pixelSize
:
Theme
.
fontSizeMedium
width
:
parent
.
width
text
:
remainingAttempts
>
0
?
qsTr
(
"
Attempts remaining:
"
)
+
"
"
+
remainingAttempts
:
""
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
TextField
{
TextField
{
id
:
lockCodeField
id
:
lockCodeField
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
@@ -62,6 +81,7 @@ Item {
...
@@ -62,6 +81,7 @@ Item {
}
}
GridLayout
{
GridLayout
{
id
:
codePad
height
:
parent
.
height
height
:
parent
.
height
width
:
parent
.
width
width
:
parent
.
width
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
src/qml/LauncherItemDelegate.qml
View file @
419a1e79
...
@@ -67,19 +67,18 @@ Item {
...
@@ -67,19 +67,18 @@ Item {
Item
{
Item
{
id
:
iconWrapper
id
:
iconWrapper
width
:
parent
.
width
-
parent
.
width
/
10
height
:
parent
.
height
-
iconText
.
height
height
:
width
-
iconText
.
height
width
:
parent
.
width
anchors.centerIn
:
parent
anchors.horizontalCenter
:
parent
.
horizontalCenter
y
:
Math
.
round
((
parent
.
height
-
(
height
+
iconText
.
height
))
/
2
)
Image
{
Image
{
id
:
iconImage
id
:
iconImage
anchors
{
anchors.centerIn
:
parent
// centerIn: launcherItem.n.otNemoIcon ? parent : undefined
sourceSize.width
:
Theme
.
iconSizeLauncher
horizontalCenter
:
/* launcherItemnotNemoIcon ? undefined : */
parent
.
horizontalCenter
sourceSize.height
:
Theme
.
iconSizeLauncher
top
:
parent
.
top
height
:
Theme
.
iconSizeLauncher
//topMargin: Theme.itemSpacingExtraSmall
width
:
height
}
width
:
/*launcherItem.notNemoIcon ? parent.width-parent.width/3 : */
parent
.
width
-
parent
.
width
/
4
height
:
width
asynchronous
:
true
asynchronous
:
true
onStatusChanged
:
{
onStatusChanged
:
{
if
(
iconImage
.
status
==
Image
.
Error
)
{
if
(
iconImage
.
status
==
Image
.
Error
)
{
...
@@ -89,11 +88,7 @@ Item {
...
@@ -89,11 +88,7 @@ Item {
}
}
Spinner
{
Spinner
{
id
:
spinnerr
id
:
spinnerr
anchors
{
anchors.centerIn
:
iconImage
centerIn
:
iconImage
top
:
iconImage
.
top
topMargin
:
Theme
.
itemSpacingExtraSmall
}
width
:
iconWrapper
.
width
width
:
iconWrapper
.
width
height
:
width
height
:
width
enabled
:
(
modelData
.
object
.
type
===
LauncherModel
.
Application
)
?
modelData
.
object
.
isLaunching
?
switcher
.
switchModel
.
getWindowIdForTitle
(
modelData
.
object
.
title
)
==
0
:
false
:
false
enabled
:
(
modelData
.
object
.
type
===
LauncherModel
.
Application
)
?
modelData
.
object
.
isLaunching
?
switcher
.
switchModel
.
getWindowIdForTitle
(
modelData
.
object
.
title
)
==
0
:
false
:
false
...
@@ -116,13 +111,13 @@ Item {
...
@@ -116,13 +111,13 @@ Item {
width
:
iconWrapper
.
width
width
:
iconWrapper
.
width
elide
:
Text
.
ElideRight
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
font.pixelSize
:
Theme
.
fontSize
Small
font.pixelSize
:
Theme
.
fontSize
Tiny
color
:
Theme
.
textColor
color
:
Theme
.
textColor
//https://bugreports.qt.io/browse/QTBUG-56052
y
:
-
contentHeight
+
font
.
pixelSize
+
iconWrapper
.
y
+
iconWrapper
.
height
anchors
{
anchors
{
left
:
parent
.
left
left
:
parent
.
left
right
:
parent
.
right
right
:
parent
.
right
bottom
:
parent
.
bottom
topMargin
:
Theme
.
itemSpacingExtraSmall
}
}
}
}
}
}
...
...
src/qml/LauncherItemFolder.qml
View file @
419a1e79
...
@@ -73,10 +73,11 @@ Item {
...
@@ -73,10 +73,11 @@ Item {
}
}
Item
{
Item
{
id
:
folderIconStack
id
:
folderIconStack
width
:
size
width
:
parent
.
width
height
:
size
height
:
parent
.
height
-
iconText
.
height
property
int
size
:
parent
.
width
-
parent
.
width
/
10
anchors.horizontalCenter
:
parent
.
horizontalCenter
property
int
iconSize
:
(
/*launcherItem.notNemoIcon ? size-size/3 : */
(
size
-
size
/
4
))
*
0.9
y
:
Math
.
round
((
parent
.
height
-
(
height
+
iconText
.
height
))
/
2
)
property
int
iconSize
:
Theme
.
iconSizeLauncher
*
0.9
property
real
transparency
:
0.6
property
real
transparency
:
0.6
property
int
iconCount
:
4
property
int
iconCount
:
4
property
var
icons
:
addIcons
()
property
var
icons
:
addIcons
()
...
@@ -146,13 +147,13 @@ Item {
...
@@ -146,13 +147,13 @@ Item {
width
:
launcherItem
.
width
width
:
launcherItem
.
width
elide
:
Text
.
ElideRight
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
font.pixelSize
:
Theme
.
fontSize
Small
font.pixelSize
:
Theme
.
fontSize
Tiny
color
:
Theme
.
textColor
color
:
Theme
.
textColor
//https://bugreports.qt.io/browse/QTBUG-56052
y
:
-
contentHeight
+
font
.
pixelSize
+
folderIconStack
.
y
+
folderIconStack
.
height
anchors
{
anchors
{
left
:
parent
.
left
left
:
parent
.
left
right
:
parent
.
right
right
:
parent
.
right
bottom
:
parent
.
bottom
topMargin
:
Theme
.
itemSpacingExtraSmall
}
}
}
}
...
@@ -173,15 +174,16 @@ Item {
...
@@ -173,15 +174,16 @@ Item {
id
:
folderLoader
id
:
folderLoader
property
Item
reorderItem
property
Item
reorderItem
property
bool
isRootFolder
:
false
property
bool
isRootFolder
:
false
property
int
folderIndex
:
-
1
cacheBuffer
:
folderLoader
.
contentHeight
cacheBuffer
:
folderLoader
.
contentHeight
parent
:
gridview
.
contentItem
parent
:
gridview
.
contentItem
y
:
wrapper
.
y
+
wrapper
.
width
y
:
wrapper
.
y
+
wrapper
.
width
x
:
0
x
:
0
z
:
wrapper
.
z
+
100
z
:
wrapper
.
z
+
100
width
:
gridview
.
width
width
:
gridview
.
width
height
:
count
==
0
?
0
:
(
Math
.
floor
((
count
*
wrapper
.
height
-
1
)
/
width
)
+
1
)
*
wrapper
.
height
height
:
count
==
0
?
0
:
(
Math
.
floor
((
count
*
wrapper
.
width
-
1
)
/
width
)
+
1
)
*
wrapper
.
height
cellWidth
:
wrapper
.
width
cellWidth
:
wrapper
.
width
cellHeight
:
wrapper
.
width
cellHeight
:
wrapper
.
height
onReorderItemChanged
:
if
(
reorderItem
==
null
)
folderIconStack
.
icons
=
folderIconStack
.
addIcons
()
onReorderItemChanged
:
if
(
reorderItem
==
null
)
folderIconStack
.
icons
=
folderIconStack
.
addIcons
()
Rectangle
{
Rectangle
{
...
...
src/qml/LauncherItemWrapper.qml
View file @
419a1e79
...
@@ -89,9 +89,11 @@ MouseArea {
...
@@ -89,9 +89,11 @@ MouseArea {
drag
.
target
=
null
drag
.
target
=
null
parentItem
.
reorderItem
=
null
parentItem
.
reorderItem
=
null
pager
.
interactive
=
true
pager
.
interactive
=
true
parentItem
.
onUninstall
=
false
if
(
parentItem
.
onUninstall
){
deleteState
=
"
basic
"
parentItem
.
onUninstall
=
false
deleter
.
uninstalling
(
deleteState
)
deleteState
=
"
basic
"
deleter
.
uninstalling
(
deleteState
)
}
parentItem
.
folderIndex
=
-
1
parentItem
.
folderIndex
=
-
1
reparent
(
parentItem
.
contentItem
)
reparent
(
parentItem
.
contentItem
)
z
=
parent
.
z
z
=
parent
.
z
...
@@ -188,7 +190,7 @@ MouseArea {
...
@@ -188,7 +190,7 @@ MouseArea {
}
}
Timer
{
//Just placeholder to get visual feedback
Timer
{
//Just placeholder to get visual feedback
id
:
deleteTimer
id
:
deleteTimer
interval
:
5
000
interval
:
3
000
onTriggered
:
{
onTriggered
:
{
iconWrapper
.
opacity
=
1.0
iconWrapper
.
opacity
=
1.0
enabled
=
true
enabled
=
true
...
...
src/qml/Lockscreen.qml
View file @
419a1e79
import
QtQuick
2.
0
import
QtQuick
2.
6
import
org
.
nemomobile
.
lipstick
0.1
import
org
.
nemomobile
.
lipstick
0.1
import
org
.
nemomobile
.
devicelock
1.0
import
org
.
nemomobile
.
devicelock
1.0
import
org
.
nemomobile
.
configuration
1.0
import
org
.
nemomobile
.
configuration
1.0
import
"
notifications
"
Image
{
Image
{
id
:
lockScreen
id
:
lockScreen
source
:
lockScreenWallpaper
.
value
source
:
lockScreenWallpaper
.
value
fillMode
:
Image
.
PreserveAspectCrop
fillMode
:
Image
.
PreserveAspectCrop
property
bool
displayOn
ConfigurationValue
{
ConfigurationValue
{
id
:
lockScreenWallpaper
id
:
lockScreenWallpaper
key
:
"
/home/glacier/lockScreen/wallpaperImage
"
key
:
"
/home/glacier/lockScreen/wallpaperImage
"
...
@@ -22,22 +26,78 @@ Image {
...
@@ -22,22 +26,78 @@ Image {
right
:
parent
.
right
right
:
parent
.
right
}
}
}
}
DeviceLockUI
{
id
:
deviceLockUI
visible
:
false
//DeviceLock.state === DeviceLock.Locked
anchors
{
top
:
clock
.
bottom
left
:
parent
.
left
}
height
:
parent
.
height
-
clock
.
height
MouseArea
{
width
:
parent
.
width
id
:
mouseArea
anchors.fill
:
parent
}
Connections
{
target
:
Lipstick
.
compositor
onDisplayOff
:
{
displayOn
=
false
displayOffTimer
.
stop
()
}
onDisplayOn
:{
displayOn
=
true
displayOffTimer
.
stop
()
}
}
//visible:
Connections
{
z
:
201
target
:
LipstickSettings
onLockscreenVisibleChanged
:
{
if
(
lockscreenVisible
()
&&
displayOn
)
{
displayOffTimer
.
restart
()
}
}
}
Timer
{
id
:
displayOffTimer
interval
:
7000
onRunningChanged
:
{
if
(
running
&&
!
displayOn
)
{
stop
()
}
}
onTriggered
:
{
if
(
displayOn
&&
lockscreenVisible
()
&&
!
Lipstick
.
compositor
.
gestureOnGoing
&&
!
codepad
.
visible
)
{
setLockScreen
(
true
)
Lipstick
.
compositor
.
setDisplayOff
()
}
}
}
}
MouseArea
{
ListView
{
anchors.fill
:
parent
id
:
notificationColumn
opacity
:
codePad
.
visible
?
1
-
codePad
.
opacity
:
1
anchors
{
top
:
clock
.
bottom
topMargin
:
Theme
.
itemSpacingHuge
bottom
:
parent
.
bottom
bottomMargin
:
Theme
.
itemSpacingHuge
left
:
parent
.
left
leftMargin
:
Theme
.
itemSpacingLarge
right
:
parent
.
right
rightMargin
:
Theme
.
itemSpacingLarge
}
interactive
:
false
spacing
:
0
model
:
NotificationListModel
{
id
:
notifmodel
}
delegate
:
NotificationItem
{
enabled
:
DeviceLock
.
state
!==
DeviceLock
.
Locked
scale
:
notificationColumn
.
opacity
transformOrigin
:
Item
.
Left
iconSize
:
Theme
.
itemHeightMedium
appName.font.pixelSize
:
Theme
.
fontSizeSmall
appName.visible
:
DeviceLock
.
state
!==
DeviceLock
.
Locked
appName.anchors.verticalCenter
:
appIcon
.
verticalCenter
appName.anchors.top
:
null
appBody.font.pixelSize
:
Theme
.
fontSizeTiny
appBody.visible
:
false
appSummary.visible
:
false
}
}
}
}
}
src/qml/MainScreen.qml
View file @
419a1e79
...
@@ -46,9 +46,17 @@ Page {
...
@@ -46,9 +46,17 @@ Page {
// This is used in the favorites page and in the lock screen
// This is used in the favorites page and in the lock screen
WallClock
{
WallClock
{
id
:
wallClock
id
:
wallClock
enabled
:
true
/* XXX: Disable when display is off */
enabled
:
true
updateFrequency
:
WallClock
.
Minute
updateFrequency
:
WallClock
.
Minute
}
}
//force refresh
Connections
{
target
:
Lipstick
.
compositor
onDisplayAboutToBeOn
:
{
wallClock
.
enabled
=
false
wallClock
.
enabled
=
true
}
}
// This is used in the lock screen
// This is used in the lock screen
ConfigurationValue
{
ConfigurationValue
{
id
:
wallpaperSource
id
:
wallpaperSource
...
...
src/qml/SearchListView.qml
View file @
419a1e79
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
****************************************************************************************/
****************************************************************************************/
import
QtQuick
2.6
import
QtQuick
2.6
import
org
.
nemomobile
.
lipstick
0.1
import
org
.
nemomobile
.
lipstick
0.1
import
QtQuick
.
Controls
1.4
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
org
.
nemomobile
.
contacts
1.0
import
org
.
nemomobile
.
contacts
1.0
...
@@ -151,7 +150,6 @@ Item {
...
@@ -151,7 +150,6 @@ Item {
filterType
:
PeopleModel
.
FilterAll
filterType
:
PeopleModel
.
FilterAll
filterPattern
:
searchString
filterPattern
:
searchString
requiredProperty
:
PeopleModel
.
PhoneNumberRequired
requiredProperty
:
PeopleModel
.
PhoneNumberRequired
//searchableProperty: root.searchableProperty
}
}
//Orginal function ** Copyright (C) 2013 Jolla Ltd. ** Contact: Joona Petrell <joona.petrell@jollamobile.com>
//Orginal function ** Copyright (C) 2013 Jolla Ltd. ** Contact: Joona Petrell <joona.petrell@jollamobile.com>
...
@@ -247,7 +245,7 @@ Item {
...
@@ -247,7 +245,7 @@ Item {
}
}
Image
{
Image
{
id
:
iconImage
id
:
iconImage
width
:
parent
.
height
-
Theme
.
itemSpacingMedium
width
:
Math
.
min
(
Theme
.
iconSizeLauncher
,
parent
.
height
-
Theme
.
itemSpacingMedium
)
height
:
width
height
:
width
source
:
iconSource
source
:
iconSource
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
...
...
src/qml/Statusbar.qml
View file @
419a1e79
...
@@ -59,7 +59,7 @@ Item {
...
@@ -59,7 +59,7 @@ Item {
property
int
oldY
property
int
oldY
anchors.fill
:
row
anchors.fill
:
row
z
:
row
.
z
+
10
z
:
row
.
z
+
10
enabled
:
!
lockscreenVisible
()
//
enabled: !lockscreenVisible()
onClicked
:
{
onClicked
:
{
if
(
oldX
!=
mouseX
&&
oldY
!==
mouseY
&&
row
.
childAt
(
mouseX
,
mouseY
)
&&
row
.
currentChild
!==
row
.
childAt
(
mouseX
,
mouseY
))
{
if
(
oldX
!=
mouseX
&&
oldY
!==
mouseY
&&
row
.
childAt
(
mouseX
,
mouseY
)
&&
row
.
currentChild
!==
row
.
childAt
(
mouseX
,
mouseY
))
{
row
.
currentChild
=
row
.
childAt
(
mouseX
,
mouseY
)
row
.
currentChild
=
row
.
childAt
(
mouseX
,
mouseY
)
...
...
src/qml/compositor.qml
View file @
419a1e79
...
@@ -45,6 +45,8 @@ Compositor {
...
@@ -45,6 +45,8 @@ Compositor {
property
Item
topmostApplicationWindow
property
Item
topmostApplicationWindow
property
Item
topmostAlarmWindow
:
null
property
Item
topmostAlarmWindow
:
null
property
bool
gestureOnGoing
function
windowToFront
(
winId
)
{
function
windowToFront
(
winId
)
{
var
o
=
root
.
windowForId
(
winId
)
var
o
=
root
.
windowForId
(
winId
)
var
window
=
null
var
window
=
null
...
@@ -141,6 +143,7 @@ Compositor {
...
@@ -141,6 +143,7 @@ Compositor {
swipeAnimation
.
stop
()
swipeAnimation
.
stop
()
cancelAnimation
.
stop
()
cancelAnimation
.
stop
()
lockAnimation
.
stop
()
lockAnimation
.
stop
()
gestureOnGoing
=
true
if
(
root
.
appActive
)
{
if
(
root
.
appActive
)
{
state
=
"
swipe
"
state
=
"
swipe
"
}
}
...
@@ -176,6 +179,9 @@ Compositor {
...
@@ -176,6 +179,9 @@ Compositor {
// Locks
// Locks
if
(
!
Desktop
.
instance
.
lockscreenVisible
())
{
if
(
!
Desktop
.
instance
.
lockscreenVisible
())
{
Desktop
.
instance
.
setLockScreen
(
true
)
Desktop
.
instance
.
setLockScreen
(
true
)
if
(
gesture
==
"
down
"
)
{
setDisplayOff
()
}
}
}
// Brings up codepad, only left and right swipes allowed for it for now
// Brings up codepad, only left and right swipes allowed for it for now
else
if
(
Desktop
.
instance
.
lockscreenVisible
()
&&
!
Desktop
.
instance
.
codepad
.
visible
&&
DeviceLock
.
state
==
DeviceLock
.
Locked
&&
(
gesture
!==
"
down
"
&&
gesture
!==
"
up
"
))
{
else
if
(
Desktop
.
instance
.
lockscreenVisible
()
&&
!
Desktop
.
instance
.
codepad
.
visible
&&
DeviceLock
.
state
==
DeviceLock
.
Locked
&&
(
gesture
!==
"
down
"
&&
gesture
!==
"
up
"
))
{
...
@@ -193,7 +199,8 @@ Compositor {
...
@@ -193,7 +199,8 @@ Compositor {
cancelAnimation
.
start
()
cancelAnimation
.
start
()
}
}
}
}
}
gestureOnGoing
=
false
}
// States are for the animations that follow your finger during swipes
// States are for the animations that follow your finger during swipes
states
:
[
states
:
[
// Swipe state is when app is on and you are swiping it to background or closing it
// Swipe state is when app is on and you are swiping it to background or closing it
...
...
src/qml/notifications/NotificationItem.qml
View file @
419a1e79
...
@@ -6,7 +6,14 @@ MouseArea {
...
@@ -6,7 +6,14 @@ MouseArea {
id
:
notifyArea
id
:
notifyArea
height
:
childrenRect
.
height
height
:
childrenRect
.
height
width
:
rootitem
.
width
width
:
parent
.
width
property
alias
appIcon
:
appIcon
property
alias
appBody
:
appBody
property
alias
appName
:
appName
property
alias
appSummary
:
appSummary
property
int
iconSize
:
Theme
.
itemHeightExtraLarge
drag.target
:
notifyArea
drag.target
:
notifyArea
drag.axis
:
Drag
.
XAxis
drag.axis
:
Drag
.
XAxis
...
@@ -54,10 +61,10 @@ MouseArea {
...
@@ -54,10 +61,10 @@ MouseArea {
Image
{
Image
{
id
:
appIcon
id
:
appIcon
height
:
Theme
.
itemHeightExtraLarge
width
:
height
property
string
defaultIcon
:
"
/usr/share/lipstick-glacier-home-qt5/qml/images/glacier.svg
"
property
string
defaultIcon
:
"
/usr/share/lipstick-glacier-home-qt5/qml/images/glacier.svg
"
height
:
iconSize
width
:
iconSize
anchors
{
anchors
{
left
:
parent
.
left
left
:
parent
.
left
leftMargin
:
Theme
.
itemSpacingLarge
leftMargin
:
Theme
.
itemSpacingLarge
...
@@ -78,7 +85,7 @@ MouseArea {
...
@@ -78,7 +85,7 @@ MouseArea {
Label
{
Label
{
id
:
appName
id
:
appName
text
:
modelData
.
appName
text
:
modelData
.
appName
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
width
:
(
parent
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
color
:
Theme
.
textColor
color
:
Theme
.
textColor
font.pixelSize
:
Theme
.
fontSizeMedium
font.pixelSize
:
Theme
.
fontSizeMedium
font.capitalization
:
Font
.
AllUppercase
font.capitalization
:
Font
.
AllUppercase
...
@@ -93,7 +100,7 @@ MouseArea {
...
@@ -93,7 +100,7 @@ MouseArea {
Label
{
Label
{
id
:
appSummary
id
:
appSummary
text
:
modelData
.
summary
text
:
modelData
.
summary
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
width
:
(
parent
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
color
:
Theme
.
textColor
color
:
Theme
.
textColor
font.pixelSize
:
Theme
.
fontSizeLarge
font.pixelSize
:
Theme
.
fontSizeLarge
//font.bold :true
//font.bold :true
...
@@ -109,7 +116,7 @@ MouseArea {
...
@@ -109,7 +116,7 @@ MouseArea {
Label
{
Label
{
id
:
appBody
id
:
appBody
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
width
:
(
parent
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
text
:
modelData
.
body
text
:
modelData
.
body
color
:
Theme
.
textColor
color
:
Theme
.
textColor
font.pixelSize
:
Theme
.
fontSizeMedium
font.pixelSize
:
Theme
.
fontSizeMedium
...
...
src/qml/statusbar/StatusbarItem.qml
View file @
419a1e79
...
@@ -35,7 +35,9 @@ Item {
...
@@ -35,7 +35,9 @@ Item {
}
}
MouseArea
{
MouseArea
{
id
:
mouse
id
:
mouse
anchors.fill
:
parent
anchors.centerIn
:
parent
width
:
parent
.
width
+
Theme
.
itemSpacingSmall
height
:
parent
.
height
+
Theme
.
itemSpacingSmall
enabled
:
!
lockscreenVisible
()
enabled
:
!
lockscreenVisible
()
onClicked
:
parent
.
clicked
()
onClicked
:
parent
.
clicked
()
}
}
...
...
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