diff --git a/ui/shared/ConfirmationDialog.qml b/ui/shared/ConfirmationDialog.qml index 2c0c94ae48..91ed3c0128 100644 --- a/ui/shared/ConfirmationDialog.qml +++ b/ui/shared/ConfirmationDialog.qml @@ -2,6 +2,7 @@ import QtQuick 2.13 import QtQuick.Controls 2.13 import QtQuick.Layouts 1.13 import "../imports" +import "../shared/status" import "./" ModalPopup { @@ -26,6 +27,7 @@ ModalPopup { Text { text: confirmationDialog.confirmationText + color: Style.current.textColor font.pixelSize: 15 anchors.left: parent.left anchors.right: parent.right @@ -37,14 +39,11 @@ ModalPopup { width: parent.width height: children[0].height - StyledButton { + StatusButton { anchors.right: parent.right anchors.rightMargin: Style.current.smallPadding - btnColor: Style.current.lightRed - btnBorderWidth: 1 - btnBorderColor: Style.current.grey - textColor: Style.current.red - label: confirmationDialog.confirmButtonLabel + color: Style.current.red + text: confirmationDialog.confirmButtonLabel anchors.bottom: parent.bottom onClicked: confirmationDialog.confirmButtonClicked() } diff --git a/ui/shared/status/StatusButton.qml b/ui/shared/status/StatusButton.qml index aab34ba3f9..8bec4d374b 100644 --- a/ui/shared/status/StatusButton.qml +++ b/ui/shared/status/StatusButton.qml @@ -8,6 +8,7 @@ Button { property string type: "primary" property string size: "large" property string state: "default" + property string color: Style.current.buttonForegroundColor id: control font.pixelSize: size === "small" ? 13 : 15 @@ -25,7 +26,7 @@ Button { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter anchors.fill: parent - color: !enabled ? Style.current.buttonDisabledForegroundColor : Style.current.buttonForegroundColor + color: !enabled ? Style.current.buttonDisabledForegroundColor : control.color visible: !loadingIndicator.active }