diff --git a/Components/SplitButton.qml b/Components/SplitButton.qml index 4252e39..9f54950 100644 --- a/Components/SplitButton.qml +++ b/Components/SplitButton.qml @@ -12,7 +12,7 @@ Row { } property alias active: menu.active - property color colour: type == SplitButton.Filled ? Colors.palette.m3primary : Colors.palette.m3secondaryContainer + property color color: type == SplitButton.Filled ? Colors.palette.m3primary : Colors.palette.m3secondaryContainer property color disabledColor: Qt.alpha(Colors.palette.m3onSurface, 0.1) property color disabledTextColor: Qt.alpha(Colors.palette.m3onSurface, 0.38) readonly property alias expandBtn: expandBtn @@ -36,7 +36,7 @@ Row { CustomRect { bottomRightRadius: Tokens.rounding.medium / 2 - color: root.disabled ? root.disabledColor : root.colour + color: !root.enabled ? root.disabledColor : root.color implicitHeight: expandBtn.implicitHeight implicitWidth: Math.max(root.minLeftWidth, textRow.implicitWidth + root.horizontalPadding * 2) radius: implicitHeight / 2 * Math.min(1, Tokens.rounding.scale) @@ -95,7 +95,7 @@ Row { property real rad: root.expanded ? implicitHeight / 2 * Math.min(1, Tokens.rounding.scale) : Tokens.rounding.medium / 2 bottomLeftRadius: rad - color: !root.enabled ? root.disabledColor : root.colour + color: !root.enabled ? root.disabledColor : root.color implicitHeight: expandIcon.implicitHeight + root.verticalPadding * 2 implicitWidth: implicitHeight radius: implicitHeight / 2 * Math.min(1, Tokens.rounding.scale)