~ubuntu-branches/ubuntu/precise/unity-2d/precise-proposed

« back to all changes in this revision

Viewing changes to shell/launcher/Launcher.qml

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-03-05 09:52:30 UTC
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: package-import@ubuntu.com-20120305095230-21sm2zj04lnzotpb
Tags: upstream-5.6.0
ImportĀ upstreamĀ versionĀ 5.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    Rectangle {
66
66
        Accessible.name: "background"
67
67
        anchors.fill: parent
 
68
        anchors.rightMargin: declarativeView.dashActive ? 0 : border.width
68
69
        color: "black"
69
70
        opacity: 0.66
70
71
        visible: desktop.isCompositingManagerRunning
71
72
    }
72
73
 
73
74
    Image {
74
 
        Accessible.name: "border"
 
75
        Accessible.name: "borderWithDash"
75
76
        id: border
76
77
 
77
78
        width: 1
78
79
        height: parent.height
79
80
        anchors.right: Utils.isLeftToRight() ? parent.right : undefined
80
81
        anchors.left:  Utils.isLeftToRight() ? undefined : parent.left
 
82
        visible: declarativeView.dashActive
81
83
        source: "artwork/border.png"
82
84
        fillMode: Image.Stretch
83
85
    }
84
86
 
 
87
    Rectangle {
 
88
        Accessible.name: "borderWithoutDash"
 
89
 
 
90
        width: border.width
 
91
        height: parent.height
 
92
        anchors.right: Utils.isLeftToRight() ? border.anchors.right : undefined
 
93
        anchors.left:  Utils.isLeftToRight() ? undefined : border.anchors.left
 
94
        visible: !declarativeView.dashActive
 
95
 
 
96
        color: "white"
 
97
        opacity: 0.15
 
98
    }
 
99
 
85
100
    onDesktopFileDropped: applications.insertFavoriteApplication(path)
86
101
    onWebpageUrlDropped: applications.insertWebFavorite(url)
87
102
 
90
105
 
91
106
        focus: true
92
107
        anchors.fill: parent
 
108
        anchors.rightMargin: border.width
93
109
        z: 1 /* ensure the lists are always strictly on top of the background */
94
110
 
95
111
        LauncherList {
180
196
        dashView: declarativeView
181
197
    }
182
198
 
183
 
    LauncherApplicationsList {
 
199
    ApplicationsList {
184
200
        id: applications
185
201
    }
186
202
 
205
221
    }
206
222
 
207
223
    Connections {
208
 
        target: declarativeView
209
 
        onAddWebFavoriteRequested: applications.insertWebFavorite(url)
210
 
    }
211
 
 
212
 
    Connections {
213
224
        target: applications
214
225
        onApplicationBecameUrgent: {
215
226
            if (main.autoScrolling) {