diff options
Diffstat (limited to 'Button/Btn.ui.qml')
-rw-r--r-- | Button/Btn.ui.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Button/Btn.ui.qml b/Button/Btn.ui.qml new file mode 100644 index 0000000..cdf730b --- /dev/null +++ b/Button/Btn.ui.qml @@ -0,0 +1,25 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import Bootstrap 5.3 + +Button { + id: button + horizontalPadding: Bootstrap.btnPaddingX + verticalPadding: Bootstrap.btnPaddingY + font: Bootstrap.btnFont + contentItem: Text { + text: button.text + font: button.font + color: Bootstrap.btnColor + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + background: Rectangle { + color: Bootstrap.btnBg + border { + width: Bootstrap.btnBorderWidth + color: Bootstrap.btnBorderColor + } + radius: Bootstrap.btnBorderRadius + } +} |