diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-16 22:29:30 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-16 22:29:30 +0800 |
commit | 4fcdeafdff1241ff598b7695283f3c44680888df (patch) | |
tree | 6c0b1802961b85645e969b21a5b09c6264920f30 /Bootstrap/Button | |
parent | 7d0960bbdced8398bc3cec36e5d15e1c31b54f4d (diff) |
Bootstrap button primary impl & its use in SignIn
Diffstat (limited to 'Bootstrap/Button')
-rw-r--r-- | Bootstrap/Button/Primary.ui.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Bootstrap/Button/Primary.ui.qml b/Bootstrap/Button/Primary.ui.qml new file mode 100644 index 0000000..e99f56b --- /dev/null +++ b/Bootstrap/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 + } +} |