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
01f073c8
Commit
01f073c8
authored
Dec 07, 2016
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AppLauncher] show folder icon and app count on it
parent
10a82b8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
AppLauncher.qml
src/qml/AppLauncher.qml
+3
-1
LauncherItemDelegate.qml
src/qml/LauncherItemDelegate.qml
+16
-1
default-icon.png
src/qml/theme/default-icon.png
+0
-0
No files found.
src/qml/AppLauncher.qml
View file @
01f073c8
...
@@ -91,7 +91,9 @@ GridView {
...
@@ -91,7 +91,9 @@ GridView {
id
:
launcherItem
id
:
launcherItem
width
:
gridview
.
cellWidth
width
:
gridview
.
cellWidth
height
:
gridview
.
cellHeight
height
:
gridview
.
cellHeight
source
:
model
.
object
.
iconId
==
""
?
"
/usr/share/lipstick-glacier-home-qt5/qml/theme/default_icon.png
"
:
(
model
.
object
.
iconId
.
indexOf
(
"
/
"
)
==
0
?
"
file://
"
:
"
image://theme/
"
)
+
model
.
object
.
iconId
iconCaption
:
model
.
object
.
title
iconCaption
:
model
.
object
.
title
isFolder
:
model
.
object
.
type
==
LauncherModel
.
Folder
folderAppsCount
:
isFolder
&&
model
.
object
?
model
.
object
.
itemCount
:
0
source
:
model
.
object
.
iconId
==
""
||
isFolder
?
"
/usr/share/lipstick-glacier-home-qt5/qml/theme/default-icon.png
"
:
(
model
.
object
.
iconId
.
indexOf
(
"
/
"
)
==
0
?
"
file://
"
:
"
image://theme/
"
)
+
model
.
object
.
iconId
}
}
}
}
src/qml/LauncherItemDelegate.qml
View file @
01f073c8
...
@@ -35,6 +35,8 @@ Item {
...
@@ -35,6 +35,8 @@ Item {
property
bool
reordering
property
bool
reordering
property
int
newIndex
:
-
1
property
int
newIndex
:
-
1
property
real
oldY
property
real
oldY
property
bool
isFolder
property
int
folderAppsCount
:
0
onXChanged
:
moveTimer
.
start
()
onXChanged
:
moveTimer
.
start
()
onYChanged
:
moveTimer
.
start
()
onYChanged
:
moveTimer
.
start
()
...
@@ -71,8 +73,9 @@ Item {
...
@@ -71,8 +73,9 @@ Item {
height
:
gridview
.
cellHeight
height
:
gridview
.
cellHeight
Image
{
Image
{
id
:
iconimage
id
:
iconimage
source
:
model
.
object
.
iconId
==
""
?
"
:/images/icons/apps.png
"
:
(
model
.
object
.
iconId
.
indexOf
(
"
/
"
)
==
0
?
"
file://
"
:
"
image://theme/
"
)
+
model
.
object
.
iconId
source
:
source
}
}
Text
{
Text
{
id
:
icontext
id
:
icontext
// elide only works if an explicit width is set
// elide only works if an explicit width is set
...
@@ -217,6 +220,18 @@ Item {
...
@@ -217,6 +220,18 @@ Item {
}
}
}
}
Text
{
id
:
itemsCount
visible
:
isFolder
text
:
folderAppsCount
anchors.centerIn
:
iconImage
horizontalAlignment
:
Text
.
AlignHCenter
font.pixelSize
:
gridview
.
cellWidth
/
4
color
:
"
white
"
}
// Caption for the icon
// Caption for the icon
Text
{
Text
{
id
:
iconText
id
:
iconText
...
...
src/qml/theme/default
_
icon.png
→
src/qml/theme/default
-
icon.png
View file @
01f073c8
File moved
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