diff options
Diffstat (limited to 'Button/Primary.ui.qml')
-rw-r--r-- | Button/Primary.ui.qml | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/Button/Primary.ui.qml b/Button/Primary.ui.qml index 810c2f8..1e1aae6 100644 --- a/Button/Primary.ui.qml +++ b/Button/Primary.ui.qml @@ -3,20 +3,13 @@ import QtQuick.Controls 2.15 import Eduport 1.4 Btn { - id: button - background: Rectangle { - color: button.down ? Eduport.bsBtnPrimaryActiveBg - : button.enabled - ? Eduport.bsBtnPrimaryBg - : Eduport.bsBtnPrimaryDisabledBg - border { - width: Eduport.bsBtnBorderWidth - color: button.down - ? Eduport.bsBtnPrimaryActiveBorderColor - : button.enabled - ? Eduport.bsBtnPrimaryBorderColor - : Eduport.bsBtnPrimaryDisabledBorderColor - } - radius: Eduport.bsBtnBorderRadius - } + bsBtnColor: Eduport.bsBtnPrimaryColor + bsBtnBg: Eduport.bsBtnPrimaryBg + bsBtnBorderColor: Eduport.bsBtnPrimaryBorderColor + bsBtnActiveColor: Eduport.bsBtnPrimaryActiveColor + bsBtnActiveBg: Eduport.bsBtnPrimaryActiveBg + bsBtnActiveBorderColor: Eduport.bsBtnPrimaryActiveBorderColor + bsBtnDisabledColor: Eduport.bsBtnPrimaryDisabledColor + bsBtnDisabledBg: Eduport.bsBtnPrimaryDisabledBg + bsBtnDisabledBorderColor: Eduport.bsBtnPrimaryDisabledBorderColor } |