Skip to content

Commit

Permalink
[QgsQuick] Feature form group styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vsklencar authored and wonder-sk committed Apr 10, 2019
1 parent e174577 commit 4a3bac8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/quickgui/plugin/qgsquickfeatureform.qml
Expand Up @@ -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 {
Expand All @@ -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
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/quickgui/plugin/qgsquickfeatureformstyling.qml
Expand Up @@ -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 {
Expand Down

0 comments on commit 4a3bac8

Please sign in to comment.