From af65e3444e638557a5a15d9722dc93ef65470760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 30 Mar 2023 12:26:02 +0800 Subject: Change the way purposed buttons override Btn --- Button/Success.ui.qml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'Button/Success.ui.qml') 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 } -- cgit v1.2.3