@@ -35,7 +35,7 @@ FocusScope {
3535 onAltTabPressedChanged: {
3636 print("Alt+Tab pressed:", altTabPressed)
3737 if (altTabPressed) {
38− appRepeater.highlightedIndex = 1;
38+ appRepeater.highlightedIndex = Math.min(ApplicationManager.count - 1, 1);
3939 } else {
4040 print("focusing app", appRepeater.highlightedIndex)
4141 ApplicationManager.requestFocusApplication(ApplicationManager.get(appRepeater.highlightedIndex).appId)
@@ -292,6 +292,47 @@ FocusScope {
292292 }
293293 }
294294
295+ Rectangle {
296+ id: workspaceSelector
297+ anchors {
298+ left: parent.left
299+ top: parent.top
300+ right: parent.right
301+ }
302+ height: root.height / 3
303+ color: "#55000000"
304+ opacity: 0
305+
306+ RowLayout {
307+ anchors {
308+ fill: parent
309+ topMargin: units.gu(9)
310+ bottomMargin: units.gu(5)
311+ }
312+ spacing: units.gu(5)
313+ Item { Layout.fillWidth: true }
314+ Repeater {
315+ model: 2 // TODO: should be workspacemodel
316+ Image {
317+ Layout.fillHeight: true
318+ Layout.preferredWidth: height * root.width / root.height
319+ source: root.background
320+ }
321+ }
322+ Rectangle {
323+ Layout.fillHeight: true
324+ Layout.preferredWidth: height * root.width / root.height
325+ color: "#22ffffff"
326+ Label {
327+ anchors.centerIn: parent
328+ font.pixelSize: parent.height / 2
329+ text: "+"
330+ }
331+ }
332+ Item { Layout.fillWidth: true }
333+ }
334+ }
335+
295336 Label {
296337 anchors { left: parent.left; bottom: parent.bottom; margins: units.gu(1) }
297338 text: "Progress: " + (spreadFlickable.contentX / (spreadFlickable.contentWidth - spreadFlickable.width)).toFixed(3) +
@@ -311,6 +352,7 @@ FocusScope {
311352 State {
312353 name: "altTab"; when: root.altTabPressed
313354 PropertyChanges { target: spreadFlickable; visible: true }
355+ PropertyChanges { target: workspaceSelector; opacity: 1 }
314356 }
315357 ]
316358 transitions: [
@@ -318,6 +360,13 @@ FocusScope {
318360 from: "*"
319361 to: "altTab"
320362 PropertyAction { target: spreadFlickable; property: "contentX"; value: 0 }
363+ PropertyAnimation { property: "opacity" }
364+ },
365+ Transition {
366+ from: "*"
367+ to: "*"
368+ PropertyAnimation { property: "opacity" }
321369 }
370+
322371 ]
323372}