on xenial help sign in
fix top margins for blur
commitb95cb03ebffbed3019f906118f12e2ac2bd6ef6e authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 10 Nov 2016, 18:28 (10 years ago) parent3c93f77
2 files changed+7−3
qml/Launcher/Launcher.qml+6−2 qml/Shell.qml+1−1
qml/Launcher/Launcher.qml+6−2
@@ -323,10 +323,14 @@ FocusScope {
323323 BackgroundBlur {
324324 id: backgroundBlur
325325 anchors.fill: parent
326+ anchors.topMargin: root.inverted ? 0 : -root.topPanelHeight
326327 visible: root.blurSource && drawer.x > -drawer.width
327328 blurAmount: units.gu(6)
328329 sourceItem: root.blurSource
329− blurRect: Qt.rect(panel.width, root.topPanelHeight, drawer.width + drawer.x - panel.width, height - root.topPanelHeight)
330+ blurRect: Qt.rect(panel.width,
331+ root.topPanelHeight,
332+ drawer.width + drawer.x - panel.width,
333+ height - root.topPanelHeight)
330334 cached: drawer.moving
331335 }
332336
@@ -335,7 +339,7 @@ FocusScope {
335339 objectName: "drawer"
336340 anchors {
337341 top: parent.top
338− topMargin: root.topPanelHeight
342+ topMargin: root.inverted ? root.topPanelHeight : 0
339343 bottom: parent.bottom
340344 }
341345 width: Math.min(root.width, units.gu(90)) * .9
qml/Shell.qml+1−1
@@ -520,7 +520,7 @@ StyledItem {
520520 panelWidth: units.gu(settings.launcherWidth)
521521 lockedVisible: shell.usageScenario == "desktop" && !settings.autohideLauncher && !panel.fullscreenMode
522522 blurSource: greeter.shown ? greeter : stages
523− topPanelHeight: inverted ? panel.panelHeight : 0
523+ topPanelHeight: panel.panelHeight
524524
525525 onShowDashHome: showHome()
526526 onDash: showDash()