summaryrefslogtreecommitdiff
path: root/Button/Primary.ui.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Button/Primary.ui.qml')
-rw-r--r--Button/Primary.ui.qml30
1 files changed, 12 insertions, 18 deletions
diff --git a/Button/Primary.ui.qml b/Button/Primary.ui.qml
index 831430a..dec0148 100644
--- a/Button/Primary.ui.qml
+++ b/Button/Primary.ui.qml
@@ -2,27 +2,21 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import Bootstrap 5.3
-Button {
+Btn {
id: button
- horizontalPadding: 16
- verticalPadding: 8
- 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
+ color: button.down ? Bootstrap.btnPrimaryActiveBG
+ : button.enabled
+ ? Bootstrap.btnPrimaryBg
+ : Bootstrap.btnPrimaryDisabledBg
border {
- color: button.down ? Bootstrap.btnActiveBorderColor
- : button.enabled ? Bootstrap.btnBorderColor
- : Bootstrap.btnDisabledBorderColor
- width: 1
+ color: button.down
+ ? Bootstrap.btnPrimaryActiveBorderColor
+ : button.enabled
+ ? Bootstrap.btnPrimaryBorderColor
+ : Bootstrap.btnPrimaryDisabledBorderColor
+ width: Bootstrap.btnBorderWidth
}
- radius: 5.2
+ radius: Bootstrap.btnBorderRadius
}
}