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
1f908037
Commit
1f908037
authored
Jan 31, 2016
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #42 from piggz/master
Fixup crazy font sizes in the app switcher
parents
009f635e
9a2af506
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
AppSwitcher.qml
src/qml/AppSwitcher.qml
+27
-6
No files found.
src/qml/AppSwitcher.qml
View file @
1f908037
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
// Copyright (c) 2011, Tom Swindell <t.swindell@rubyx.co.uk>
// Copyright (c) 2011, Tom Swindell <t.swindell@rubyx.co.uk>
// Copyright (c) 2012, Timur Kristóf <venemo@fedoraproject.org>
// Copyright (c) 2012, Timur Kristóf <venemo@fedoraproject.org>
import
QtQuick
2.
0
import
QtQuick
2.
2
import
org
.
nemomobile
.
lipstick
0.1
import
org
.
nemomobile
.
lipstick
0.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
...
@@ -126,45 +126,66 @@ Item {
...
@@ -126,45 +126,66 @@ Item {
}
}
Behavior
on
anchors.bottomMargin
{
PropertyAnimation
{
duration
:
100
}
}
Behavior
on
anchors.bottomMargin
{
PropertyAnimation
{
duration
:
100
}
}
Button
{
Button
{
id
:
toolBarDone
id
:
toolBarDone
width
:
parent
.
width
/
3
width
:
parent
.
width
/
3
height
:
width
anchors
{
anchors
{
top
:
parent
.
top
top
:
parent
.
top
topMargin
:
toolBar
.
padding
topMargin
:
toolBar
.
padding
right
:
parent
.
horizontalCenter
right
:
parent
.
horizontalCenter
rightMargin
:
toolBar
.
padding
rightMargin
:
toolBar
.
padding
}
}
text
:
'
Done
'
onClicked
:
{
onClicked
:
{
switcherRoot
.
closeMode
=
false
;
switcherRoot
.
closeMode
=
false
;
}
}
style
:
ButtonStyle
{
label
:
Label
{
text
:
"
Done
"
anchors.fill
:
parent
anchors.margins
:
10
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
fontSizeMode
:
Text
.
HorizontalFit
anchors.centerIn
:
parent
}
}
}
}
Button
{
Button
{
id
:
toolBarCloseAll
id
:
toolBarCloseAll
width
:
toolBarDone
.
width
width
:
toolBarDone
.
width
height
:
width
anchors
{
anchors
{
top
:
parent
.
top
top
:
parent
.
top
topMargin
:
toolBar
.
padding
topMargin
:
toolBar
.
padding
left
:
parent
.
horizontalCenter
left
:
parent
.
horizontalCenter
leftMargin
:
toolBar
.
padding
leftMargin
:
toolBar
.
padding
}
}
text
:
'
Close all
'
onClicked
:
{
onClicked
:
{
// TODO: use close animation inside item
// TODO: use close animation inside item
for
(
var
i
=
gridRepeater
.
count
-
1
;
i
>=
0
;
i
--
)
{
for
(
var
i
=
gridRepeater
.
count
-
1
;
i
>=
0
;
i
--
)
{
gridRepeater
.
itemAt
(
i
).
close
()
gridRepeater
.
itemAt
(
i
).
close
()
}
}
}
}
style
:
ButtonStyle
{
label
:
Label
{
text
:
"
Close
\n
All
"
anchors.margins
:
10
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
fontSizeMode
:
Text
.
Fit
anchors.centerIn
:
parent
}
}
}
}
}
}
// Empty switcher indicator
// Empty switcher indicator
Label
{
Label
{
visible
:
switcherModel
.
itemCount
===
0
visible
:
switcherModel
.
itemCount
===
0
text
:
"
No apps open
"
text
:
"
No apps open
"
width
:
parent
.
width
fontSizeMode
:
Text
.
HorizontalFit
}
}
}
}
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