@@ -18,6 +18,7 @@
19import QtQuick 2.3
19import QtQuick 2.3
20import Ubuntu.Components 1.1
20import Ubuntu.Components 1.1
21+import "../Components"
@@ -42,37 +43,14 @@ Item {
44 anchors { left: parent.left; top: parent.top; bottom: parent.bottom; margins: units.gu(0.7) }
45 anchors { left: parent.left; top: parent.top; bottom: parent.bottom; margins: units.gu(0.7) }
45− spacing: units.gu(0.5)
46+ spacing: units.gu(1)
46 opacity: root.active ? 1 : 0.5
47 opacity: root.active ? 1 : 0.5
49+ WindowControlButtons {
48− height: parent.height; width: height; radius: height / 2
50+ height: parent.height
49− gradient: Gradient {
51+ onClose: root.close();
50− GradientStop { color: "#F49073"; position: 0 }
52+ onMinimize: root.minimize();
51− GradientStop { color: "#DF4F1C"; position: 1 }
53+ onMaximize: root.maximize();
53− border.width: units.dp(.5)
54− border.color: "black"
55− MouseArea { anchors.fill: parent; onClicked: root.close() }
58− height: parent.height; width: height; radius: height / 2
60− GradientStop { color: "#92918C"; position: 0 }
61− GradientStop { color: "#5E5D58"; position: 1 }
63− border.width: units.dp(.5)
64− border.color: "black"
65− MouseArea { anchors.fill: parent; onClicked: root.minimize() }
68− height: parent.height; width: height; radius: height / 2
70− GradientStop { color: "#92918C"; position: 0 }
71− GradientStop { color: "#5E5D58"; position: 1 }
73− border.width: units.dp(.5)
74− border.color: "black"
75− MouseArea { anchors.fill: parent; onClicked: root.maximize() }