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.3
24 spacing: units.gu(0.5)
31 objectName: "closeWindowButton"
32 height: parent.height; width: height; radius: height / 2
34 GradientStop { color: "#F49073"; position: 0 }
35 GradientStop { color: "#DF4F1C"; position: 1 }
37 border.width: units.dp(.5)
39 MouseArea { anchors.fill: parent; onClicked: root.close() }
42 objectName: "minimizeWindowButton"
43 height: parent.height; width: height; radius: height / 2
45 GradientStop { color: "#92918C"; position: 0 }
46 GradientStop { color: "#5E5D58"; position: 1 }
48 border.width: units.dp(.5)
50 MouseArea { anchors.fill: parent; onClicked: root.minimize() }
53 objectName: "maximizeWindowButton"
54 height: parent.height; width: height; radius: height / 2
56 GradientStop { color: "#92918C"; position: 0 }
57 GradientStop { color: "#5E5D58"; position: 1 }
59 border.width: units.dp(.5)
61 MouseArea { anchors.fill: parent; onClicked: root.maximize() }