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
9a432526
Commit
9a432526
authored
Aug 12, 2017
by
eekkelund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AppLauncher] Add fontawesome icons to AppLauncher
parent
b2030497
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
24 deletions
+65
-24
AppLauncher.qml
src/qml/AppLauncher.qml
+47
-19
AppSwitcher.qml
src/qml/AppSwitcher.qml
+1
-0
SearchListView.qml
src/qml/SearchListView.qml
+17
-5
No files found.
src/qml/AppLauncher.qml
View file @
9a432526
...
...
@@ -204,6 +204,7 @@ GridView {
property
color
color2
:
"
#80ff0000
"
property
color
color3
:
"
#4Dff0000
"
property
alias
text
:
removeLabel
.
text
anchors.left
:
parent
.
left
visible
:
gridview
.
onUninstall
height
:
Theme
.
itemHeightExtraLarge
width
:
gridview
.
width
/
2
...
...
@@ -212,17 +213,30 @@ GridView {
GradientStop
{
position
:
0.5
;
color
:
remove
.
color2
}
GradientStop
{
position
:
1.0
;
color
:
remove
.
color3
}
}
Label
{
id
:
removeLabel
height
:
parent
.
height
Row
{
width
:
parent
.
width
anchors.centerIn
:
parent
text
:
qsTr
(
"
Remove
"
)
font.pixelSize
:
Theme
.
fontSizeLarge
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
height
:
parent
.
height
Image
{
id
:
removeIcon
fillMode
:
Image
.
PreserveAspectFit
height
:
parent
.
height
-
Theme
.
itemSpacingExtraSmall
width
:
height
anchors.verticalCenter
:
parent
.
verticalCenter
source
:
"
image://theme/remove
"
visible
:
deleter
.
state
!=
"
remove
"
}
Label
{
id
:
removeLabel
text
:
qsTr
(
"
Remove
"
)
height
:
parent
.
height
width
:
parent
.
width
-
(
removeIcon
.
visible
?
removeIcon
.
width
:
0
)
anchors.verticalCenter
:
parent
.
verticalCenter
font.pixelSize
:
Theme
.
fontSizeLarge
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
}
}
}
Rectangle
{
...
...
@@ -240,16 +254,30 @@ GridView {
GradientStop
{
position
:
0.5
;
color
:
uninstall
.
color2
}
GradientStop
{
position
:
1.0
;
color
:
uninstall
.
color3
}
}
Label
{
id
:
uninstallLabel
height
:
parent
.
height
Row
{
width
:
parent
.
width
anchors.centerIn
:
parent
text
:
qsTr
(
"
Uninstall
"
)
font.pixelSize
:
Theme
.
fontSizeLarge
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
height
:
parent
.
height
Image
{
id
:
trashIcon
fillMode
:
Image
.
PreserveAspectFit
height
:
parent
.
height
-
Theme
.
itemSpacingExtraSmall
width
:
height
anchors.verticalCenter
:
parent
.
verticalCenter
source
:
"
image://theme/trash
"
visible
:
deleter
.
state
!=
"
uninstall
"
}
Label
{
id
:
uninstallLabel
height
:
parent
.
height
width
:
parent
.
width
-
(
trashIcon
.
visible
?
trashIcon
.
width
:
0
)
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Uninstall
"
)
font.pixelSize
:
Theme
.
fontSizeLarge
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
}
}
}
}
...
...
src/qml/AppSwitcher.qml
View file @
9a432526
...
...
@@ -46,6 +46,7 @@ Item {
closeMode
=
false
;
}
}
clip
:
true
// Empty switcher indicator
Rectangle
{
id
:
topText
...
...
src/qml/SearchListView.qml
View file @
9a432526
...
...
@@ -58,9 +58,8 @@ Item {
id
:
margin
height
:
Theme
.
itemSpacingSmall
}
TextField
{
id
:
searchField
Row
{
id
:
searchRow
anchors
{
top
:
margin
.
bottom
left
:
parent
.
left
...
...
@@ -70,12 +69,25 @@ Item {
rightMargin
:
Theme
.
itemSpacingMedium
bottomMargin
:
Theme
.
itemSpacingHuge
}
Image
{
id
:
searchIcon
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
height
height
:
searchField
.
height
fillMode
:
Image
.
PreserveAspectFit
source
:
"
image://theme/search
"
}
TextField
{
id
:
searchField
width
:
parent
.
width
-
searchIcon
.
width
-
Theme
.
itemSpacingMedium
placeholderText
:
qsTr
(
"
Search
"
)
Binding
{
target
:
gridview
property
:
"
searchString
"
value
:
searchField
.
text
.
toLowerCase
().
trim
()
}
}
}
ListView
{
...
...
@@ -83,7 +95,7 @@ Item {
clip
:
true
width
:
parent
.
width
height
:
contentHeight
anchors.top
:
search
Field
.
bottom
anchors.top
:
search
Row
.
bottom
anchors.topMargin
:
Theme
.
itemSpacingSmall
visible
:
searchString
.
length
>
0
section.property
:
'
category
'
...
...
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