From 4a3bac82518d8d7142614bc82453b0b33c2b3fd5 Mon Sep 17 00:00:00 2001 From: vsklencar Date: Mon, 8 Apr 2019 16:59:07 +0200 Subject: [PATCH] [QgsQuick] Feature form group styling --- src/quickgui/plugin/qgsquickfeatureform.qml | 3 +++ src/quickgui/plugin/qgsquickfeatureformstyling.qml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/quickgui/plugin/qgsquickfeatureform.qml b/src/quickgui/plugin/qgsquickfeatureform.qml index 2bd4b8de1fa3..5bda84f8421f 100644 --- a/src/quickgui/plugin/qgsquickfeatureform.qml +++ b/src/quickgui/plugin/qgsquickfeatureform.qml @@ -253,6 +253,7 @@ Item { id: content anchors.fill: parent clip: true + spacing: form.style.group.spacing section.property: "Group" section.labelPositioning: ViewSection.CurrentLabelAtStart | ViewSection.InlineLabels section.delegate: Component { @@ -265,7 +266,9 @@ Item { Text { anchors { horizontalCenter: parent.horizontalCenter; verticalCenter: parent.verticalCenter } font.bold: true + font.pixelSize: form.style.group.fontPixelSize text: section + color: form.style.group.fontColor } } } diff --git a/src/quickgui/plugin/qgsquickfeatureformstyling.qml b/src/quickgui/plugin/qgsquickfeatureformstyling.qml index 11c5c6742dac..9d0ebe0634ff 100644 --- a/src/quickgui/plugin/qgsquickfeatureformstyling.qml +++ b/src/quickgui/plugin/qgsquickfeatureformstyling.qml @@ -23,7 +23,10 @@ QtObject { property QtObject group: QtObject { property color backgroundColor: "lightGray" - property real height: 30 * QgsQuick.Utils.dp + property real height: 64 * QgsQuick.Utils.dp + property color fontColor: "black" + property int spacing: 10 * QgsQuick.Utils.dp + property int fontPixelSize: 24 * QgsQuick.Utils.dp } property QtObject tabs: QtObject {