Skip to content

Commit 4a3bac8

Browse files
vsklencarwonder-sk
authored andcommittedApr 10, 2019
[QgsQuick] Feature form group styling
1 parent e174577 commit 4a3bac8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎src/quickgui/plugin/qgsquickfeatureform.qml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Item {
253253
id: content
254254
anchors.fill: parent
255255
clip: true
256+
spacing: form.style.group.spacing
256257
section.property: "Group"
257258
section.labelPositioning: ViewSection.CurrentLabelAtStart | ViewSection.InlineLabels
258259
section.delegate: Component {
@@ -265,7 +266,9 @@ Item {
265266
Text {
266267
anchors { horizontalCenter: parent.horizontalCenter; verticalCenter: parent.verticalCenter }
267268
font.bold: true
269+
font.pixelSize: form.style.group.fontPixelSize
268270
text: section
271+
color: form.style.group.fontColor
269272
}
270273
}
271274
}

‎src/quickgui/plugin/qgsquickfeatureformstyling.qml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ QtObject {
2323

2424
property QtObject group: QtObject {
2525
property color backgroundColor: "lightGray"
26-
property real height: 30 * QgsQuick.Utils.dp
26+
property real height: 64 * QgsQuick.Utils.dp
27+
property color fontColor: "black"
28+
property int spacing: 10 * QgsQuick.Utils.dp
29+
property int fontPixelSize: 24 * QgsQuick.Utils.dp
2730
}
2831

2932
property QtObject tabs: QtObject {

0 commit comments

Comments
 (0)
Please sign in to comment.