@@ -138,7 +138,7 @@ Rectangle {
138 id: appRepeater
138 id: appRepeater
139 model: ApplicationManager
139 model: ApplicationManager
141− property int highlightedIndex: 1
141+ property int highlightedIndex: -1
143 delegate: Item {
143 delegate: Item {
144 id: appDelegate
144 id: appDelegate
@@ -365,17 +365,18 @@ Rectangle {
365 spacing: units.gu(1)
365 spacing: units.gu(1)
366 Item { Layout.fillWidth: true }
366 Item { Layout.fillWidth: true }
367 Repeater {
367 Repeater {
368− model: 2 // TODO: should be workspacemodel
368+ model: 1 // TODO: will be a workspacemodel in the future
370 Layout.fillHeight: true
370 Layout.fillHeight: true
371 Layout.preferredWidth: ((height - units.gu(6)) * root.width / root.height)
371 Layout.preferredWidth: ((height - units.gu(6)) * root.width / root.height)
373 source: root.background
373 source: root.background
374 anchors {
374 anchors {
375− fill: parent;
375+ left: parent.left
376− topMargin: units.gu(2);
376+ right: parent.right
377− bottomMargin: units.gu(2);
377+ verticalCenter: parent.verticalCenter
379+ height: parent.height * 0.75
380 ShaderEffect {
381 ShaderEffect {
381 anchors.fill: parent
382 anchors.fill: parent
@@ -412,10 +413,11 @@ Rectangle {
412 Layout.preferredWidth: ((height - units.gu(6)) * root.width / root.height)
413 Layout.preferredWidth: ((height - units.gu(6)) * root.width / root.height)
413 Rectangle {
414 Rectangle {
414 anchors {
415 anchors {
415− fill: parent;
416+ left: parent.left
416− topMargin: units.gu(2);
417+ right: parent.right
417− bottomMargin: units.gu(2);
418+ verticalCenter: parent.verticalCenter
420+ height: parent.height * 0.75
419 color: "#22ffffff"
421 color: "#22ffffff"
@@ -429,6 +431,13 @@ Rectangle {
435+ id: currentSelectedLabel
436+ anchors { bottom: parent.bottom; bottomMargin: root.height * 0.625; horizontalCenter: parent.horizontalCenter }
437+ text: ApplicationManager.get(appRepeater.highlightedIndex).name
433 anchors { left: parent.left; bottom: parent.bottom; margins: units.gu(1) }
442 anchors { left: parent.left; bottom: parent.bottom; margins: units.gu(1) }
434 text: "Progress: " + (spreadFlickable.contentX / (spreadFlickable.contentWidth - spreadFlickable.width)).toFixed(3) +
443 text: "Progress: " + (spreadFlickable.contentX / (spreadFlickable.contentWidth - spreadFlickable.width)).toFixed(3) +
@@ -449,6 +458,7 @@ Rectangle {
449 name: "altTab"; when: root.altTabPressed
458 name: "altTab"; when: root.altTabPressed
450 PropertyChanges { target: workspaceSelector; visible: true }
459 PropertyChanges { target: workspaceSelector; visible: true }
451 PropertyChanges { target: spreadFlickable; enabled: true }
460 PropertyChanges { target: spreadFlickable; enabled: true }
461+ PropertyChanges { target: currentSelectedLabel; visible: true }
454 signal updateWorkspaces();
464 signal updateWorkspaces();
@@ -465,8 +475,8 @@ Rectangle {
465 PropertyAction { target: spreadFlickable; property: "visible" }
475 PropertyAction { target: spreadFlickable; property: "visible" }
466 PropertyAction { target: spreadFlickable; property: "contentX";
476 PropertyAction { target: spreadFlickable; property: "contentX";
467 value: ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 3, 1));
477 value: ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 3, 1));
479+ PropertyAction { target: appRepeater; property: "highlightedIndex"; value: 1 }
472 Transition {
482 Transition {
@@ -474,6 +484,7 @@ Rectangle {
475 PropertyAnimation { property: "opacity" }
485 PropertyAnimation { property: "opacity" }
476 PropertyAction { target: root; property: "workspacesUpdated"; value: false }
486 PropertyAction { target: root; property: "workspacesUpdated"; value: false }
487+ PropertyAction { target: appRepeater; property: "highlightedIndex"; value: -1 }