on xenial help sign in
also hide the close button from panel
commitc10dd4432eefaaee107aa7eaf6a6d9ca63529da5 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 31 Mar 2016, 15:43 (11 years ago) parent06b31a5
3 files changed+8
qml/Components/PanelState/PanelState.qml+1 qml/Panel/Panel.qml+1 qml/Stages/DesktopStage.qml+6
qml/Components/PanelState/PanelState.qml+1
@@ -22,6 +22,7 @@ QtObject {
2222
2323 property string title: ""
2424 property bool buttonsVisible: false
25+ property bool closeButtonShown: true
2526 property bool dropShadow: false
2627 property int panelHeight: units.gu(3)
2728
qml/Panel/Panel.qml+1
@@ -126,6 +126,7 @@ Item {
126126 height: indicators.minimizedPanelHeight - anchors.topMargin - anchors.bottomMargin
127127 visible: PanelState.buttonsVisible && parent.containsMouse && !root.locked && !callHint.visible
128128 active: PanelState.buttonsVisible
129+ closeButtonShown: PanelState.closeButtonShown
129130 onClose: PanelState.close()
130131 onMinimize: PanelState.minimize()
131132 onMaximize: PanelState.maximize()
qml/Stages/DesktopStage.qml+6
@@ -220,6 +220,12 @@ AbstractStage {
220220 value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppIndex !== -1
221221 }
222222
223+ Binding {
224+ target: PanelState
225+ property: "closeButtonShown"
226+ value: priv.focusedAppDelegate && priv.focusedAppDelegate.maximized && priv.focusedAppId != "unity8-dash"
227+ }
228+
223229 Component.onDestruction: {
224230 PanelState.title = "";
225231 PanelState.buttonsVisible = false;