summaryrefslogtreecommitdiff
path: root/Button/Success.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 12:26:02 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 12:26:02 +0800
commitaf65e3444e638557a5a15d9722dc93ef65470760 (patch)
tree6ab92a1a4157a8d54fcff58caa3b288ff165ad1f /Button/Success.ui.qml
parentd2c379ee8c7b52270897cd3134f163fef3927da6 (diff)
Change the way purposed buttons override Btn
Diffstat (limited to 'Button/Success.ui.qml')
-rw-r--r--Button/Success.ui.qml25
1 files changed, 9 insertions, 16 deletions
diff --git a/Button/Success.ui.qml b/Button/Success.ui.qml
index 2da78cd..9a1286d 100644
--- a/Button/Success.ui.qml
+++ b/Button/Success.ui.qml
@@ -3,20 +3,13 @@ import QtQuick.Controls 2.15
import Eduport 1.4
Btn {
- id: button
- background: Rectangle {
- color: button.down ? Eduport.bsBtnSuccessActiveBg
- : button.enabled
- ? Eduport.bsBtnSuccessBg
- : Eduport.bsBtnSuccessDisabledBg
- border {
- width: Eduport.bsBtnBorderWidth
- color: button.down
- ? Eduport.bsBtnSuccessActiveBorderColor
- : button.enabled
- ? Eduport.bsBtnSuccessBorderColor
- : Eduport.bsBtnSuccessDisabledBorderColor
- }
- radius: Eduport.bsBtnBorderRadius
- }
+ bsBtnColor: Eduport.bsBtnSuccessColor
+ bsBtnBg: Eduport.bsBtnSuccessBg
+ bsBtnBorderColor: Eduport.bsBtnSuccessBorderColor
+ bsBtnActiveColor: Eduport.bsBtnSuccessActiveColor
+ bsBtnActiveBg: Eduport.bsBtnSuccessActiveBg
+ bsBtnActiveBorderColor: Eduport.bsBtnSuccessActiveBorderColor
+ bsBtnDisabledColor: Eduport.bsBtnSuccessDisabledColor
+ bsBtnDisabledBg: Eduport.bsBtnSuccessDisabledBg
+ bsBtnDisabledBorderColor: Eduport.bsBtnSuccessDisabledBorderColor
}