on xenial help sign in
add a preliminary close button to the highlight (asset needed)
commit815294dbba6b273c97193cab9b5af103eaa2c876 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 17 Apr 2015, 11:17 (12 years ago) parenta60d486
1 file changed+20
qml/Stages/DecoratedWindow.qml+20
qml/Stages/DecoratedWindow.qml+20
@@ -123,4 +123,24 @@ FocusScope {
123123 ]
124124 }
125125 }
126+
127+ Rectangle {
128+ color: "white"
129+ anchors { left: parent.left; top: parent.top; margins: -height/2 }
130+ height: units.gu(2)
131+ width: units.gu(2)
132+ radius: height / 2
133+ visible: root.highlightShown
134+ Label {
135+ anchors.centerIn: parent
136+ text: "X"
137+ color: "red"
138+ }
139+ MouseArea {
140+ anchors.fill: parent
141+ onClicked: {
142+ ApplicationManager.stopApplication(appId)
143+ }
144+ }
145+ }
126146}