Feat: Dashboard media widget update + anim tokens restructure #151
@@ -12,7 +12,7 @@ Row {
|
|||||||
}
|
}
|
||||||
|
|
||||||
property alias active: menu.active
|
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 disabledColor: Qt.alpha(Colors.palette.m3onSurface, 0.1)
|
||||||
property color disabledTextColor: Qt.alpha(Colors.palette.m3onSurface, 0.38)
|
property color disabledTextColor: Qt.alpha(Colors.palette.m3onSurface, 0.38)
|
||||||
readonly property alias expandBtn: expandBtn
|
readonly property alias expandBtn: expandBtn
|
||||||
@@ -36,7 +36,7 @@ Row {
|
|||||||
|
|
||||||
CustomRect {
|
CustomRect {
|
||||||
bottomRightRadius: Tokens.rounding.medium / 2
|
bottomRightRadius: Tokens.rounding.medium / 2
|
||||||
color: root.disabled ? root.disabledColor : root.colour
|
color: !root.enabled ? root.disabledColor : root.color
|
||||||
implicitHeight: expandBtn.implicitHeight
|
implicitHeight: expandBtn.implicitHeight
|
||||||
implicitWidth: Math.max(root.minLeftWidth, textRow.implicitWidth + root.horizontalPadding * 2)
|
implicitWidth: Math.max(root.minLeftWidth, textRow.implicitWidth + root.horizontalPadding * 2)
|
||||||
radius: implicitHeight / 2 * Math.min(1, Tokens.rounding.scale)
|
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
|
property real rad: root.expanded ? implicitHeight / 2 * Math.min(1, Tokens.rounding.scale) : Tokens.rounding.medium / 2
|
||||||
|
|
||||||
bottomLeftRadius: rad
|
bottomLeftRadius: rad
|
||||||
color: !root.enabled ? root.disabledColor : root.colour
|
color: !root.enabled ? root.disabledColor : root.color
|
||||||
implicitHeight: expandIcon.implicitHeight + root.verticalPadding * 2
|
implicitHeight: expandIcon.implicitHeight + root.verticalPadding * 2
|
||||||
implicitWidth: implicitHeight
|
implicitWidth: implicitHeight
|
||||||
radius: implicitHeight / 2 * Math.min(1, Tokens.rounding.scale)
|
radius: implicitHeight / 2 * Math.min(1, Tokens.rounding.scale)
|
||||||
|
|||||||
Reference in New Issue
Block a user