2
* Copyright (C) 2013 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.Application 0.1
19
import Ubuntu.Components 0.1
20
import "../Components"
25
type: ApplicationInfo.SideStage
26
property real handleSizeCollapsed: units.gu(2.5)
27
property real handleSizeExpanded: units.gu(4)
28
property bool handleExpanded
30
/* FIXME: workaround so that when a main stage app goes fullscreen
31
the sidestage's top is not transparent. Proper fix would be to
32
resize the side stage app.
35
id: backgroundBeneathPanel
41
height: shell.panelHeight
42
color: background.color
51
visible: stage.usingScreenshots
56
objectName: "sideStageHandle"
64
width: handleExpanded ? handleSizeExpanded : handleSizeCollapsed
65
Behavior on width { NumberAnimation { easing.type: Easing.OutQuart} }