~unity-2d-team/unity-2d/trunk

« back to all changes in this revision

Viewing changes to shell/dash/Home.qml

  • Committer: Tarmac
  • Author(s): Albert Astals, LDS, Lohith D Shivamurthy, Ugo Riboni
  • Date: 2012-03-15 10:33:11 UTC
  • mfrom: (915.5.120 Shell-MultiMonitor)
  • Revision ID: tarmac-20120315103311-8ujg3ct3q7fmy5cj
[all] implement multimonitor support in the shell

* allow launcher-per-screen configuration
* HUD and Dash follow mouse cursor
* panel per-screen, also on non-top screens
* spread per-screen
* support the switch to a single launcher on primary monitor. Fixes: https://bugs.launchpad.net/bugs/780204, https://bugs.launchpad.net/bugs/844798, https://bugs.launchpad.net/bugs/844809, https://bugs.launchpad.net/bugs/947145, https://bugs.launchpad.net/bugs/954175. Approved by Michał Sawicz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
            verticalAlignment: Text.AlignVCenter
90
90
        }
91
91
 
92
 
        opacity: (!expanded && declarativeView.dashMode == ShellDeclarativeView.DesktopMode) ? 1 : 0
 
92
        opacity: (!expanded && shellManager.dashMode == ShellManager.DesktopMode) ? 1 : 0
93
93
        Behavior on opacity {NumberAnimation {duration: 100}}
94
94
 
95
95
        onClicked: {
137
137
        id: shortcuts
138
138
 
139
139
        focus: !globalSearchActive
140
 
        opacity: (!globalSearchActive && (shortcutsActive || declarativeView.dashMode == ShellDeclarativeView.FullScreenMode)) ? 1 : 0
 
140
        opacity: (!globalSearchActive && (shortcutsActive || shellManager.dashMode == ShellManager.FullScreenMode)) ? 1 : 0
141
141
        anchors.horizontalCenter: parent.horizontalCenter
142
142
        anchors.verticalCenter: parent.verticalCenter
143
143
 
173
173
                source: "../common/artwork/cross.png"
174
174
            }
175
175
 
176
 
            opacity: (expanded && declarativeView.dashMode == ShellDeclarativeView.DesktopMode) ? 1 : 0
 
176
            opacity: (expanded && shellManager.dashMode == ShellManager.DesktopMode) ? 1 : 0
177
177
            Behavior on opacity {NumberAnimation {duration: 100}}
178
178
 
179
179
            onClicked: shortcutsActive = false