fix: minor fixes to give better context and use custom components

This commit is contained in:
hydr063n 2020-10-05 17:08:26 +02:00 committed by Iuri Matias
parent 80cd040bcd
commit 3c9de2c432
2 changed files with 3 additions and 4 deletions

View File

@ -25,9 +25,8 @@ ModalPopup {
signal confirmButtonClicked()
Text {
StyledText {
text: confirmationDialog.confirmationText
color: Style.current.textColor
font.pixelSize: 15
anchors.left: parent.left
anchors.right: parent.right
@ -42,7 +41,7 @@ ModalPopup {
StatusButton {
anchors.right: parent.right
anchors.rightMargin: Style.current.smallPadding
color: Style.current.red
color: Style.current.danger
text: confirmationDialog.confirmButtonLabel
anchors.bottom: parent.bottom
onClicked: confirmationDialog.confirmButtonClicked()

View File

@ -8,7 +8,7 @@ Button {
property string type: "primary"
property string size: "large"
property string state: "default"
property string color: Style.current.buttonForegroundColor
property color color: Style.current.buttonForegroundColor
id: control
font.pixelSize: size === "small" ? 13 : 15