summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-02-23 10:02:15 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-02-24 11:39:49 -0800
commit928e7ed8694e49efdabe3502eef32c4519bf6b0c (patch)
treecd68e3477f8a17e791638d1d69fc32343a6ad90b
parent76a7c860f1d704eba1def0ebf1f23f7a924562ff (diff)
downloadsubsurface-928e7ed8694e49efdabe3502eef32c4519bf6b0c.tar.gz
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 <jlmulder@xs4all.nl>
-rw-r--r--mobile-widgets/qml/Log.qml5
1 files changed, 2 insertions, 3 deletions
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
}
}
}