From e9cbc2f95cbd67f0605cade6c5b0924b172bc92b 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, 23 Mar 2023 13:16:06 +0800 Subject: Reuse among BS properties --- imports/Bootstrap/Bootstrap.qml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/imports/Bootstrap/Bootstrap.qml b/imports/Bootstrap/Bootstrap.qml index 7019a86..2ad1d58 100644 --- a/imports/Bootstrap/Bootstrap.qml +++ b/imports/Bootstrap/Bootstrap.qml @@ -14,22 +14,24 @@ QtObject { readonly property color btnColor: "#ffffff" readonly property color btnBg: "transparent" readonly property real btnBorderWidth: 1 - readonly property color btnBorderColor: "transparent" + readonly property color btnBorderColor: btnBg readonly property real btnBorderRadius: 5.2 readonly property real btnLgFontSize: 16 readonly property real btnLgBorderRadius: 5.2 readonly property color btnPrimaryBg: "#066ac9" - readonly property color btnPrimaryBorderColor: "#066ac9" + readonly property color btnPrimaryBorderColor: btnPrimaryBg readonly property color btnPrimaryActiveBg: "#0555a1" readonly property color btnPrimaryActiveBorderColor: "#055097" readonly property color btnPrimaryDisabledBg: "#a6066ac9" - readonly property color btnPrimaryDisabledBorderColor: "#a6066ac9" + readonly property color btnPrimaryDisabledBorderColor + : btnPrimaryDisabledBg readonly property color btnSuccessBg: "#0cbc87" - readonly property color btnSuccessBorderColor: "#0cbc87" + readonly property color btnSuccessBorderColor: btnSuccessBg readonly property color btnSuccessActiveBg: "#0a966c" readonly property color btnSuccessActiveBorderColor: "#098d65" readonly property color btnSuccessDisabledBg: "#a60cbc87" - readonly property color btnSuccessDisabledBorderColor: "#a60cbc87" + readonly property color btnSuccessDisabledBorderColor + : btnSuccessDisabledBg readonly property font bodyFont: Qt.font({ family: haveRoboto ? "Roboto" : regular.name, -- cgit v1.2.3