@@ -138,7 +138,7 @@ Rectangle {
138138 id: appRepeater
139139 model: ApplicationManager
140140
141− property int highlightedIndex: 1
141+ property int highlightedIndex: -1
142142
143143 delegate: Item {
144144 id: appDelegate
@@ -365,17 +365,18 @@ Rectangle {
365365 spacing: units.gu(1)
366366 Item { Layout.fillWidth: true }
367367 Repeater {
368− model: 2 // TODO: should be workspacemodel
368+ model: 1 // TODO: will be a workspacemodel in the future
369369 Item {
370370 Layout.fillHeight: true
371371 Layout.preferredWidth: ((height - units.gu(6)) * root.width / root.height)
372372 Image {
373373 source: root.background
374374 anchors {
375− fill: parent;
376− topMargin: units.gu(2);
377− bottomMargin: units.gu(2);
375+ left: parent.left
376+ right: parent.right
377+ verticalCenter: parent.verticalCenter
378378 }
379+ height: parent.height * 0.75
379380
380381 ShaderEffect {
381382 anchors.fill: parent
@@ -412,10 +413,11 @@ Rectangle {
412413 Layout.preferredWidth: ((height - units.gu(6)) * root.width / root.height)
413414 Rectangle {
414415 anchors {
415− fill: parent;
416− topMargin: units.gu(2);
417− bottomMargin: units.gu(2);
416+ left: parent.left
417+ right: parent.right
418+ verticalCenter: parent.verticalCenter
418419 }
420+ height: parent.height * 0.75
419421 color: "#22ffffff"
420422
421423 Label {
@@ -429,6 +431,13 @@ Rectangle {
429431 }
430432 }
431433
434+ Label {
435+ id: currentSelectedLabel
436+ anchors { bottom: parent.bottom; bottomMargin: root.height * 0.625; horizontalCenter: parent.horizontalCenter }
437+ text: ApplicationManager.get(appRepeater.highlightedIndex).name
438+ visible: false
439+ }
440+
432441 Label {
433442 anchors { left: parent.left; bottom: parent.bottom; margins: units.gu(1) }
434443 text: "Progress: " + (spreadFlickable.contentX / (spreadFlickable.contentWidth - spreadFlickable.width)).toFixed(3) +
@@ -449,6 +458,7 @@ Rectangle {
449458 name: "altTab"; when: root.altTabPressed
450459 PropertyChanges { target: workspaceSelector; visible: true }
451460 PropertyChanges { target: spreadFlickable; enabled: true }
461+ PropertyChanges { target: currentSelectedLabel; visible: true }
452462 }
453463 ]
454464 signal updateWorkspaces();
@@ -465,8 +475,8 @@ Rectangle {
465475 PropertyAction { target: spreadFlickable; property: "visible" }
466476 PropertyAction { target: spreadFlickable; property: "contentX";
467477 value: ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 3, 1));
468−
469478 }
479+ PropertyAction { target: appRepeater; property: "highlightedIndex"; value: 1 }
470480 }
471481 },
472482 Transition {
@@ -474,6 +484,7 @@ Rectangle {
474484 to: "*"
475485 PropertyAnimation { property: "opacity" }
476486 PropertyAction { target: root; property: "workspacesUpdated"; value: false }
487+ PropertyAction { target: appRepeater; property: "highlightedIndex"; value: -1 }
477488 }
478489
479490 ]