App drawer's grid view top margin (#142)
* Update Drawer.qml
Removed bottom margin or the search field
* Update DrawerGridView.qml
Added top margin to have the same layout when the search field had bottom margin but this time the GridView won't be covered by that bottom margin.
commit12cb7908462da668685709df71b271ec1e8c0b2e
authorKugi Eusebio <kugi_igi@yahoo.com>
dateWed 12 Jun 2019, 02:51 (7 years ago)
parent822749b
qml/Launcher/Drawer.qml+1−2
@@ -228,7 +228,7 @@ FocusScope {
228228
229229 Item {
230230 id: searchFieldContainer
231− height: units.gu(6)
231+ height: units.gu(4)
232232 anchors { left: parent.left; top: parent.top; right: parent.right; margins: units.gu(1) }
233233
234234 TextField {
@@ -239,7 +239,6 @@ FocusScope {
239239 top: parent.top
240240 right: parent.right
241241 bottom: parent.bottom
242− bottomMargin: units.gu(2)
243242 }
244243 placeholderText: i18n.tr("Search…")
245244 z: 100
qml/Launcher/DrawerGridView.qml+1
@@ -37,6 +37,7 @@ FocusScope {
3737 GridView {
3838 id: gridView
3939 anchors.fill: parent
40+ anchors.topMargin: units.gu(2)
4041 leftMargin: spacing
4142 focus: true
4243