Use styled text items in divedetails

Using Label instead of text gives us consistent coloring and styling of
the text labels. Also remove the boldness to make it comply to the
design language used.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sebastian Kügler 2015-11-12 00:43:23 +01:00 committed by Dirk Hohndel
parent 91b951c362
commit b50202bfc5

View file

@ -53,7 +53,7 @@ Item {
id: editorDetails
width: parent.width
columns: 2
Text {
Label {
Layout.columnSpan: 2
Layout.alignment: Qt.AlignHCenter
text: "Dive " + number + " (" + date + ")"; font.bold: true
@ -64,19 +64,19 @@ Item {
id: qmlProfile
height: 500
}
Text { text: "Location:"; font.bold: true }
Label { text: "Location:" }
TextField { id: txtLocation; text: location; Layout.fillWidth: true }
Text { text: "Air Temp:"; font.bold: true }
Label { text: "Air Temp:" }
TextField { id: txtAirTemp; text: airtemp; Layout.fillWidth: true }
Text { text: "Water Temp:"; font.bold: true }
Label { text: "Water Temp:" }
TextField { id: txtWaterTemp; text: watertemp; Layout.fillWidth: true }
Text { text: "Suit:"; font.bold: true }
Label { text: "Suit:" }
TextField { id: txtSuit; text: suit; Layout.fillWidth: true }
Text { text: "Buddy:"; font.bold: true }
Label { text: "Buddy:" }
TextField { id: txtBuddy; text: buddy; Layout.fillWidth: true }
Text { text: "Dive Master:"; font.bold: true }
Label { text: "Dive Master:" }
TextField { id: txtDiveMaster; text: divemaster; Layout.fillWidth: true}
Text { text: "Notes:"; font.bold: true }
Label { text: "Notes:" }
TextEdit{
id: txtNotes
text: notes