mobile/UI: make dive download combo boxes theme aware

In reality I should make our TemplateComboBox capable of handling the
modifications needed here without yet another reimplementation. Maybe
I'll do that next. This at least makes things look right.

A couple of odd whitespace changes snuck in at the end.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-12-20 17:18:47 -08:00
parent 535a15e5fd
commit 4995c141c6

View file

@ -54,7 +54,7 @@ Kirigami.Page {
TemplateLabel {
text: qsTr(" Vendor name: ")
}
Controls.ComboBox {
TemplateComboBox {
id: comboVendor
Layout.fillWidth: true
Layout.preferredHeight: Kirigami.Units.gridUnit * 2.5
@ -66,6 +66,7 @@ Kirigami.Page {
contentItem: Text {
text: modelData
font.pointSize: subsurfaceTheme.regularPointSize
color: subsurfaceTheme.textColor
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
@ -74,6 +75,7 @@ Kirigami.Page {
contentItem: Text {
text: comboVendor.displayText
font.pointSize: subsurfaceTheme.regularPointSize
color: subsurfaceTheme.textColor
leftPadding: Kirigami.Units.gridUnit * 0.5
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
@ -90,7 +92,7 @@ Kirigami.Page {
TemplateLabel {
text: qsTr(" Dive Computer:")
}
Controls.ComboBox {
TemplateComboBox {
id: comboProduct
Layout.fillWidth: true
Layout.preferredHeight: Kirigami.Units.gridUnit * 2.5
@ -102,6 +104,7 @@ Kirigami.Page {
contentItem: Text {
text: modelData
font.pointSize: subsurfaceTheme.regularPointSize
color: subsurfaceTheme.textColor
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
@ -110,6 +113,7 @@ Kirigami.Page {
contentItem: Text {
text: comboProduct.displayText
font.pointSize: subsurfaceTheme.regularPointSize
color: subsurfaceTheme.textColor
leftPadding: Kirigami.Units.gridUnit * 0.5
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
@ -129,7 +133,7 @@ Kirigami.Page {
TemplateLabel {
text: qsTr(" Connection:")
}
Controls.ComboBox {
TemplateComboBox {
id: comboConnection
Layout.fillWidth: true
Layout.preferredHeight: Kirigami.Units.gridUnit * 2.5
@ -141,6 +145,7 @@ Kirigami.Page {
contentItem: Text {
text: modelData
font.pointSize: subsurfaceTheme.smallPointSize
color: subsurfaceTheme.textColor
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
@ -149,6 +154,7 @@ Kirigami.Page {
contentItem: Text {
text: comboConnection.displayText
font.pointSize: subsurfaceTheme.smallPointSize
color: subsurfaceTheme.textColor
leftPadding: Kirigami.Units.gridUnit * 0.5
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter