@@ -39,7 +39,7 @@ Item {
39 fill: parent
39 fill: parent
40 topMargin: panelHeight
40 topMargin: panelHeight
42− color: "#333333"
42+ color: "black"
43 opacity: indicators.unitProgress * darkenedOpacity
43 opacity: indicators.unitProgress * darkenedOpacity
44 visible: !indicators.fullyClosed
44 visible: !indicators.fullyClosed
@@ -57,7 +57,7 @@ Item {
57 anchors.fill: parent
57 anchors.fill: parent
59 Behavior on anchors.topMargin {
59 Behavior on anchors.topMargin {
60− NumberAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
60+ UbuntuNumberAnimation {}
63 transform: Translate {
63 transform: Translate {
@@ -115,13 +115,16 @@ Item {
117 MouseArea {
117 MouseArea {
118 anchors {
119 anchors {
119 top: parent.top
120 top: parent.top
120 left: parent.left
121 left: parent.left
121 right: indicators.left
122 right: indicators.left
123 height: indicators.minimizedPanelHeight
124 height: indicators.minimizedPanelHeight
124 onClicked: { if (callHint.visible) { callHint.showLiveCall(); } }
126 onClicked: { if (callHint.visible) { callHint.showLiveCall(); } }
127+ onDoubleClicked: PanelState.maximize()
127 IndicatorsMenu {
130 IndicatorsMenu {
@@ -166,10 +169,13 @@ Item {
166 anchors {
169 anchors {
167 left: parent.left
170 left: parent.left
168 top: parent.top
171 top: parent.top
172+ leftMargin: units.gu(1)
173+ topMargin: units.gu(0.5)
169− margins: units.gu(0.7)
174+ bottomMargin: units.gu(0.5)
171− height: indicators.minimizedPanelHeight - anchors.margins * 2
176+ height: indicators.minimizedPanelHeight - anchors.topMargin - anchors.bottomMargin
172− visible: PanelState.buttonsVisible && !root.locked
177+ visible: PanelState.buttonsVisible && mouseArea.containsMouse && !root.locked && !callHint.visible
178+ active: PanelState.buttonsVisible
173 onClose: PanelState.close()
179 onClose: PanelState.close()
174 onMinimize: PanelState.minimize()
180 onMinimize: PanelState.minimize()
175 onMaximize: PanelState.maximize()
181 onMaximize: PanelState.maximize()
@@ -179,19 +185,23 @@ Item {
179 id: titleLabel
185 id: titleLabel
180 objectName: "windowDecorationTitle"
186 objectName: "windowDecorationTitle"
181 anchors {
187 anchors {
182− left: PanelState.buttonsVisible ? windowControlButtons.right : parent.left // FIXME this should be separate from the buttons, also based on LIM
188+ left: parent.left
183 top: parent.top
189 top: parent.top
190+ leftMargin: units.gu(1)
191+ topMargin: units.gu(0.5)
184− margins: units.gu(0.7)
192+ bottomMargin: units.gu(0.5)
186 color: PanelState.buttonsVisible ? "#ffffff" : "#5d5d5d"
194 color: PanelState.buttonsVisible ? "#ffffff" : "#5d5d5d"
187− height: windowControlButtons.height
195+ height: indicators.minimizedPanelHeight - anchors.topMargin - anchors.bottomMargin
188− visible: true // TODO the title should exchange with the menu on mouse hover
196+ visible: !windowControlButtons.visible && !root.locked && !callHint.visible
189 verticalAlignment: Text.AlignVCenter
197 verticalAlignment: Text.AlignVCenter
190 fontSize: "medium"
198 fontSize: "medium"
191− font.weight: Font.Light
199+ font.weight: Font.Normal
192 text: PanelState.title
200 text: PanelState.title
203+ // TODO here would the LIM come
195 PanelSeparatorLine {
205 PanelSeparatorLine {
196 id: indicatorOrangeLine
206 id: indicatorOrangeLine
197 anchors {
207 anchors {