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
9a2af506
Commit
9a2af506
authored
Jan 30, 2016
by
Adam Pigg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup crazy font sizes in the app switcher
parent
009f635e
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 @
9a2af506
...
...
@@ -22,7 +22,7 @@
// Copyright (c) 2011, Tom Swindell <t.swindell@rubyx.co.uk>
// Copyright (c) 2012, Timur Kristóf <venemo@fedoraproject.org>
import
QtQuick
2.
0
import
QtQuick
2.
2
import
org
.
nemomobile
.
lipstick
0.1
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
...
...
@@ -126,45 +126,66 @@ Item {
}
Behavior
on
anchors.bottomMargin
{
PropertyAnimation
{
duration
:
100
}
}
Button
{
id
:
toolBarDone
width
:
parent
.
width
/
3
height
:
width
anchors
{
top
:
parent
.
top
topMargin
:
toolBar
.
padding
right
:
parent
.
horizontalCenter
rightMargin
:
toolBar
.
padding
}
text
:
'
Done
'
onClicked
:
{
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
{
id
:
toolBarCloseAll
width
:
toolBarDone
.
width
height
:
width
anchors
{
top
:
parent
.
top
topMargin
:
toolBar
.
padding
left
:
parent
.
horizontalCenter
leftMargin
:
toolBar
.
padding
}
text
:
'
Close all
'
onClicked
:
{
// TODO: use close animation inside item
for
(
var
i
=
gridRepeater
.
count
-
1
;
i
>=
0
;
i
--
)
{
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
Label
{
visible
:
switcherModel
.
itemCount
===
0
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