From 684ad4e18dd4e0e9567a63a95694e9103a6454c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 23 Mar 2023 12:52:14 +0800 Subject: Success button and its reuse --- Button/Success.ui.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Button/Success.ui.qml (limited to 'Button') diff --git a/Button/Success.ui.qml b/Button/Success.ui.qml new file mode 100644 index 0000000..41cc498 --- /dev/null +++ b/Button/Success.ui.qml @@ -0,0 +1,22 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import Bootstrap 5.3 + +Btn { + id: button + background: Rectangle { + color: button.down ? Bootstrap.btnSuccessActiveBG + : button.enabled + ? Bootstrap.btnSuccessBg + : Bootstrap.btnSuccessDisabledBg + border { + width: Bootstrap.btnBorderWidth + color: button.down + ? Bootstrap.btnSuccessActiveBorderColor + : button.enabled + ? Bootstrap.btnSuccessBorderColor + : Bootstrap.btnSuccessDisabledBorderColor + } + radius: Bootstrap.btnBorderRadius + } +} -- cgit v1.2.3