diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 17:33:20 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 17:33:20 +0800 |
commit | db0a295904cf54c03023a9f64b458cdcddf363c3 (patch) | |
tree | d6a9d3c7dd1b447f8aaf901f8d1d20b8de725aa1 /Button | |
parent | dffcf6d339faae463e5be3acfc237454aadcb650 (diff) |
Reorganise auth, primary button, and reuse
Diffstat (limited to 'Button')
-rw-r--r-- | Button/Primary.ui.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Button/Primary.ui.qml b/Button/Primary.ui.qml new file mode 100644 index 0000000..e99f56b --- /dev/null +++ b/Button/Primary.ui.qml @@ -0,0 +1,20 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import Bootstrap 5.3 + +Button { + id: button + font: Bootstrap.btnFont + contentItem: Text { + text: button.text + font: button.font + color: Bootstrap.btnColor + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + background: Rectangle { + color: button.down ? Bootstrap.btnActiveBG : button.enabled + ? Bootstrap.btnBg : Bootstrap.btnDisabledBg + radius: 8 + } +} |