@@ -0,0 +1,84 @@
2+ * Copyright (C) 2014-2016 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.3
20+import WindowManager 1.0
21+import Unity.Application 0.1
26+ backgroundColor: "#F2111111"
27+ width: screensRow.childrenRect.width + units.gu(4)
29+ property var screensProxy: Screens.createProxy();
30+ property string background
35+ top: parent.top; topMargin: units.gu(2)
36+ left: parent.left; leftMargin: units.gu(2)
43+ height: root.height - units.gu(4)
44+ width: workspaces.width
48+ anchors { left: parent.left; top: parent.top; right: parent.right }
50+ backgroundColor: "white"
53+ anchors { left: parent.left; top: parent.top; right: parent.right; margins: units.gu(1) }
54+ text: model.screen.name
55+ color: UbuntuColors.ash
61+ height: parent.height - header.height - units.gu(2)
64+ if (screensProxy.count == 1) {
65+ width = Math.min(implicitWidth, root.width - units.gu(8));
67+ width = Math.min(implicitWidth, model.screen.active ? root.width - units.gu(48) : units.gu(40))
69+ return Math.max(workspaces.minimumWidth, width);
72+ Behavior on width { UbuntuNumberAnimation {} }
73+ anchors.bottom: parent.bottom
74+ anchors.bottomMargin: units.gu(1)
75+ anchors.horizontalCenter: parent.horizontalCenter
77+ background: root.background
79+ workspaceModel: model.screen.workspaces