on xenial help sign in
Make the text clickable for search too as in the mockup
commit210c93cf8a5129dd16e3dc00fa15a5d017bbf009 authorAlbert Astals Cid <albert.astals@canonical.com> dateMon 28 Sep 2015, 10:18 (11 years ago) parent2e7c831
1 file changed+23
qml/Dash/PageHeader.qml+23
qml/Dash/PageHeader.qml+23
@@ -314,6 +314,29 @@ Item {
314314 onTriggered: root.favoriteClicked()
315315 }
316316 ]
317+
318+ contents: Label {
319+ objectName: "header_title_label"
320+ LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
321+ anchors {
322+ left: parent.left
323+ right: parent.right
324+ verticalCenter: parent.verticalCenter
325+ }
326+ text: header.title
327+ font.weight: header.fontWeight
328+ fontSize: header.fontSize
329+ color: header.titleColor
330+ elide: Text.ElideRight
331+ AbstractButton {
332+ anchors.fill: parent
333+ enabled: root.searchEntryEnabled
334+ onClicked: {
335+ headerContainer.showSearch = true;
336+ searchTextField.forceActiveFocus();
337+ }
338+ }
339+ }
317340 }
318341
319342 property var contents: null