on xenial help sign in
don't show decoration in spread
commite059971c248753e098fd73f911495aaa08319303 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 19 Mar 2015, 14:43 (12 years ago) parent400ef98
2 files changed+8−1
qml/Stages/DecoratedWindow.qml+4−1 qml/Stages/DesktopStage.qml+4
qml/Stages/DecoratedWindow.qml+4−1
@@ -27,6 +27,8 @@ FocusScope {
2727 property alias application: applicationWindow.application
2828 property alias active: decoration.active
2929
30+ property bool decorationShown: true
31+
3032 signal close();
3133 signal maximize();
3234 signal minimize();
@@ -50,13 +52,14 @@ FocusScope {
5052 onClose: root.close();
5153 onMaximize: root.maximize();
5254 onMinimize: root.minimize();
55+ visible: decorationShown
5356 }
5457
5558 ApplicationWindow {
5659 id: applicationWindow
5760 objectName: application ? "appWindow_" + application.appId : "appWindow_null"
5861 anchors.fill: parent
59− anchors.topMargin: units.gu(3)
62+ anchors.topMargin: root.decorationShown ? decoration.height : 0
6063 interactive: true
6164 focus: true
6265 }
qml/Stages/DesktopStage.qml+4
@@ -162,6 +162,10 @@ FocusScope {
162162 target: darkenOverlay
163163 opacity: index != appRepeater.highlightedIndex ? 0.4 : 0
164164 }
165+ PropertyChanges {
166+ target: decoratedWindow
167+ decorationShown: false
168+ }
165169 }
166170 ]
167171 transitions: [