summaryrefslogtreecommitdiff
path: root/Button/Success.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-23 12:52:14 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-23 12:52:14 +0800
commit684ad4e18dd4e0e9567a63a95694e9103a6454c8 (patch)
tree758a9edb087d866192f6a256741b1fa597efa50d /Button/Success.ui.qml
parentb3d2b1fc6251d2a75a45ef88477cbf6ed5aa9eb7 (diff)
Success button and its reuse
Diffstat (limited to 'Button/Success.ui.qml')
-rw-r--r--Button/Success.ui.qml22
1 files changed, 22 insertions, 0 deletions
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
+ }
+}