on xenial help sign in
completely drop Hud and Bttombar from Shell.qml
commit8f02a4bae4575d05f48b9f1f29a6262d40f053da authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 4 Mar 2014, 13:31 (13 years ago) parenta0bfdec
1 file changed+3−50
qml/Shell.qml+3−50
qml/Shell.qml+3−50
@@ -28,9 +28,7 @@ import "Dash"
2828import "Greeter"
2929import "Launcher"
3030import "Panel"
31−import "Hud"
3231import "Components"
33−import "Bottombar"
3432import "SideStage"
3533import "Notifications"
3634import Unity.Notifications 1.0 as NotificationBackend
@@ -403,7 +401,7 @@ FocusScope {
403401
404402 readonly property int backgroundTopMargin: -panel.panelHeight
405403
406− hides: [launcher, panel.indicators, hud]
404+ hides: [launcher, panel.indicators]
407405 shown: false
408406 enabled: true
409407 showAnimation: StandardAnimation { property: "opacity"; to: 1 }
@@ -459,7 +457,7 @@ FocusScope {
459457 objectName: "greeter"
460458
461459 available: true
462− hides: [launcher, panel.indicators, hud]
460+ hides: [launcher, panel.indicators]
463461 shown: true
464462
465463 defaultBackground: shell.background
@@ -547,7 +545,7 @@ FocusScope {
547545 InputFilterArea {
548546 anchors.fill: parent
549547 blockInput: !applicationFocused || greeter.shown || lockscreen.shown || launcher.shown
550− || panel.indicators.shown || hud.shown
548+ || panel.indicators.shown
551549 }
552550
553551 Connections {
@@ -609,49 +607,6 @@ FocusScope {
609607 }
610608 }
611609
612− Hud {
613− id: hud
614−
615− width: parent.width > units.gu(60) ? units.gu(40) : parent.width
616− height: parent.height
617−
618− // FIXME: Temporarily disabling the hud as it'll change but we don't know how yet.
619− available: false // !greeter.shown && !panel.indicators.shown && !lockscreen.shown && edgeDemo.dashEnabled
620− shown: false
621− showAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: 0; easing.type: Easing.Linear }
622− hideAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: hudRevealer.closedValue; easing.type: Easing.Linear }
623−
624− Connections {
625− target: shell.applicationManager
626− onMainStageFocusedApplicationChanged: hud.hide()
627− onSideStageFocusedApplicationChanged: hud.hide()
628− }
629− }
630−
631− Revealer {
632− id: hudRevealer
633−
634− enabled: hud.shown
635− width: hud.width
636− anchors.left: hud.left
637− height: parent.height
638− target: hud.revealerTarget
639− closedValue: height
640− openedValue: 0
641− direction: Qt.RightToLeft
642− orientation: Qt.Vertical
643− handleSize: hud.handleHeight
644− onCloseClicked: target.hide()
645− }
646−
647− Bottombar {
648− id: bottombar
649− theHud: hud
650− anchors.fill: parent
651− enabled: hud.available
652− applicationIsOnForeground: applicationFocused
653− }
654−
655610 InputFilterArea {
656611 blockInput: launcher.shown
657612 anchors {
@@ -696,8 +651,6 @@ FocusScope {
696651 onShownChanged: {
697652 if (shown) {
698653 panel.indicators.hide()
699− hud.hide()
700− bottombar.hide()
701654 }
702655 }
703656 }