on xenial help sign in
add text to drop targets
commitccd07fa05d352040833efd2bdf6f01f3a9c6478a authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 15 Mar 2017, 11:42 (10 years ago) parentf4d6026
2 files changed+27−5
qml/Stage/Spread/WorkspacePreview.qml+26−4 qml/Stage/Stage.qml+1−1
qml/Stage/Spread/WorkspacePreview.qml+26−4
@@ -85,18 +85,40 @@ Item {
8585 anchors.rightMargin: parent.width / 2
8686 color: "#55000000"
8787 visible: previewSpace.containsDragLeft
88+
89+ Column {
90+ anchors.centerIn: parent
91+ spacing: units.gu(1)
92+ Icon {
93+ source: "../graphics/multi-monitor_leave.png"
94+ height: units.gu(4)
95+ width: height
96+ anchors.horizontalCenter: parent.horizontalCenter
97+ }
98+ Label {
99+ text: qsTr("Drop")
100+ }
101+ }
88102 }
103+
89104 Rectangle {
90105 anchors.fill: parent
91106 anchors.leftMargin: parent.width / 2
92107 color: "#55000000"
93108 visible: previewSpace.containsDragRight
94109
95− Icon {
96− source: "../graphics/multi-monitor_leave.png"
97− height: units.gu(4)
98− width: height
110+ Column {
99111 anchors.centerIn: parent
112+ spacing: units.gu(1)
113+ Icon {
114+ source: "../graphics/multi-monitor_leave.png"
115+ height: units.gu(4)
116+ width: height
117+ anchors.horizontalCenter: parent.horizontalCenter
118+ }
119+ Label {
120+ text: qsTr("Drop and go")
121+ }
100122 }
101123 }
102124}
qml/Stage/Stage.qml+1−1
@@ -571,7 +571,7 @@ FocusScope {
571571 ScreensAndWorkspaces {
572572 id: screensAndWorkspaces
573573 anchors { left: parent.left; top: parent.top; right: parent.right; leftMargin: root.leftMargin }
574− height: parent.height * .3
574+ height: Math.max(units.gu(35), parent.height * .4)
575575 background: root.background
576576 opacity: 0
577577 visible: opacity > 0