on xenial help sign in
some minor improvements
commit8df007e9374c43bcfca2bdaf128ad1a922a3afbe authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 19 Nov 2014, 16:24 (12 years ago) parentfff8cf8
2 files changed+7−2
qml/Stages/DesktopStage.qml+5−2 qml/Stages/WindowDecoration.qml+2
qml/Stages/DesktopStage.qml+5−2
@@ -17,9 +17,11 @@ Item {
1717
1818 onFocusRequested: {
1919 var appIndex = priv.indexOf(appId);
20− ApplicationManager.move(appIndex, 0);
20+ var appDelegate = appRepeater.itemAt(appIndex);
21+ if (appDelegate.state === "minimized") {
22+ appDelegate.state = "normal"
23+ }
2124 ApplicationManager.focusApplication(appId);
22− appRepeater.itemAt(appIndex).state = "normal"
2325 }
2426 }
2527
@@ -128,6 +130,7 @@ Item {
128130 onClose: ApplicationManager.stopApplication(model.appId)
129131 onMaximize: appDelegate.state = (appDelegate.state == "maximized" ? "normal" : "maximized")
130132 onMinimize: appDelegate.state = "minimized"
133+ active: ApplicationManager.focusedApplicationId == model.appId
131134 }
132135
133136 ApplicationWindow {
qml/Stages/WindowDecoration.qml+2
@@ -6,6 +6,7 @@ Item {
66 clip: true
77
88 property alias title: titleLabel.text
9+ property bool active: false
910
1011 signal close()
1112 signal minimize()
@@ -24,6 +25,7 @@ Item {
2425 Row {
2526 anchors { left: parent.left; top: parent.top; bottom: parent.bottom; margins: units.gu(0.7) }
2627 spacing: units.gu(0.5)
28+ opacity: root.active ? 1 : 0.5
2729 Rectangle {
2830 height: parent.height; width: height; radius: height / 2
2931 gradient: Gradient {