uiux: ensure components have proper theme text color

Closes #899
This commit is contained in:
Pascal Precht 2020-09-15 13:21:23 +02:00 committed by Iuri Matias
parent 8b941c179f
commit 4f94588199
3 changed files with 26 additions and 4 deletions

View File

@ -25,7 +25,30 @@ Item {
id: mailserversList
RadioButton {
text: name
id: control
indicator: Rectangle {
implicitWidth: 26
implicitHeight: 26
x: control.leftPadding
y: parent.height / 2 - height / 2
radius: 13
border.color: control.down ? "#17a81a" : "#21be2b"
Rectangle {
width: 14
height: 14
x: 6
y: 6
radius: 7
color: control.down ? "#17a81a" : "#21be2b"
visible: control.checked
}
}
contentItem: StyledText {
text: name
color: Style.current.textColor
leftPadding: control.indicator.width + control.spacing
}
checked: index == 0 ? true: false
}
}

View File

@ -13,7 +13,7 @@ ModalPopup {
signal blockButtonClicked()
title: qsTrId("block-user")
Text {
StyledText {
//% "Blocking will remove any messages you received from " + blockContactConfirmationDialog.contactName + " and stop new messages from reaching you."
text: qsTrId("blocking-will-remove-any-messages-you-received-from-----blockcontactconfirmationdialog-contactname-----and-stop-new-messages-from-reaching-you-")
font.pixelSize: 15

View File

@ -32,7 +32,6 @@ Item {
anchors.top: parent.top
anchors.topMargin: 0
font.pixelSize: 13
color: Style.current.black
}
Rectangle {