From 928e7ed8694e49efdabe3502eef32c4519bf6b0c Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Fri, 23 Feb 2018 10:02:15 +0100 Subject: QML UI Mobile: correct margins on log page Also a developer likes to see a nicely formatted page, so correct some bugs in margin handling on the log page. There was a strange multi-line whitespace on the top of the list, and the total width of the page was (initially) a little smaller than full page, so showing a small strip of the page left on the pageStack. This just looks weird. So again, cosmetics only. Signed-off-by: Jan Mulder --- mobile-widgets/qml/Log.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/Log.qml b/mobile-widgets/qml/Log.qml index 0077680c4..6c4921551 100644 --- a/mobile-widgets/qml/Log.qml +++ b/mobile-widgets/qml/Log.qml @@ -10,15 +10,13 @@ import org.kde.kirigami 2.2 as Kirigami Kirigami.ScrollablePage { id: logWindow - width: parent.width - Kirigami.Units.gridUnit - anchors.margins: Kirigami.Units.gridUnit / 2 + width: subsurfaceTheme.columnWidth objectName: "Log" title: qsTr("Application Log") background: Rectangle { color: subsurfaceTheme.backgroundColor } ListView { anchors.fill: parent - anchors.topMargin: Kirigami.Units.gridUnit * 2 model: logModel currentIndex: -1 boundsBehavior: Flickable.StopAtBounds @@ -32,6 +30,7 @@ Kirigami.ScrollablePage { color: Kirigami.Theme.textColor text : message font.pointSize: subsurfaceTheme.smallPointSize + leftPadding: Kirigami.Units.gridUnit / 2 } } } -- cgit v1.2.3-70-g09d2