2 * Copyright (C) 2014 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 import Ubuntu.Components 1.1
19 import "." as LocalComponents
26 title: i18n.tr("Open the launcher")
27 text: i18n.tr("Short swipe from the left edge.")
29 textXOffset: root.launcher.x + root.launcher.visibleWidth
35 if (root.launcher.state === "visible") {
49 paused: running && root.paused
50 running: !slider.active && root.launcher.visibleWidth === 0 && root.shown
51 loops: Animation.Infinite
53 UbuntuNumberAnimation {
57 duration: UbuntuAnimation.SleepyDuration
59 UbuntuNumberAnimation {
63 duration: UbuntuAnimation.SleepyDuration
72 root.launcher.x = 0; // make sure to reset launcher before we go
78 LocalComponents.Slider {
83 topMargin: root.textBottom + units.gu(3)
85 offset: root.launcher.x + root.launcher.visibleWidth + root.launcher.progress
86 active: root.launcher.dragging