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/>.
16 * Authors: Michael Zanetti <michael.zanetti@canonical.com>
20 import Ubuntu.Components 1.1
24 spacing: units.gu(0.5)
31 height: parent.height; width: height; radius: height / 2
33 GradientStop { color: "#F49073"; position: 0 }
34 GradientStop { color: "#DF4F1C"; position: 1 }
36 border.width: units.dp(.5)
38 MouseArea { anchors.fill: parent; onClicked: root.close() }
41 height: parent.height; width: height; radius: height / 2
43 GradientStop { color: "#92918C"; position: 0 }
44 GradientStop { color: "#5E5D58"; position: 1 }
46 border.width: units.dp(.5)
48 MouseArea { anchors.fill: parent; onClicked: root.minimize() }
51 height: parent.height; width: height; radius: height / 2
53 GradientStop { color: "#92918C"; position: 0 }
54 GradientStop { color: "#5E5D58"; position: 1 }
56 border.width: units.dp(.5)
58 MouseArea { anchors.fill: parent; onClicked: root.maximize() }