Commit b8dfc2d0 authored by Nate Graham's avatar Nate Graham
Browse files

Move home button to the right of the toolbar and fix ugly layout hack

parent 967a4b43
...@@ -76,25 +76,14 @@ Kirigami.GlobalDrawer { ...@@ -76,25 +76,14 @@ Kirigami.GlobalDrawer {
preferredHeight: 40 // Match Kirigami.ToolBarApplicationHeader, which is hardcoded to this preferredHeight: 40 // Match Kirigami.ToolBarApplicationHeader, which is hardcoded to this
RowLayout { RowLayout {
width: parent.width anchors.fill: parent
anchors.centerIn: parent anchors.leftMargin: Kirigami.Units.smallSpacing
anchors.rightMargin: Kirigami.Units.smallSpacing
ToolButton {
Layout.leftMargin: Kirigami.Units.smallSpacing
icon.name: "go-home"
onClicked: Navigation.openHome()
ToolTip {
text: i18n("Return to the Featured page")
}
}
SearchField { SearchField {
id: searchField id: searchField
Layout.fillWidth: true Layout.fillWidth: true
Layout.rightMargin: Kirigami.Units.smallSpacing
visible: window.leftPage && (window.leftPage.searchFor !== null || window.leftPage.hasOwnProperty("search")) visible: window.leftPage && (window.leftPage.searchFor !== null || window.leftPage.hasOwnProperty("search"))
...@@ -119,6 +108,16 @@ Kirigami.GlobalDrawer { ...@@ -119,6 +108,16 @@ Kirigami.GlobalDrawer {
} }
} }
} }
ToolButton {
icon.name: "go-home"
onClicked: Navigation.openHome()
ToolTip {
text: i18n("Return to the Featured page")
}
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment