mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-31 08:52:49 -05:00
widgets: dynamic DankToggle height
This commit is contained in:
@@ -27,7 +27,7 @@ Item {
|
|||||||
readonly property int insetCircle: 24
|
readonly property int insetCircle: 24
|
||||||
|
|
||||||
width: showText ? parent.width : trackWidth
|
width: showText ? parent.width : trackWidth
|
||||||
height: showText ? (description.length > 0 ? 60 : 44) : trackHeight
|
height: showText ? Math.max(trackHeight, textColumn.implicitHeight + Theme.spacingM * 2) : trackHeight
|
||||||
|
|
||||||
function handleClick() {
|
function handleClick() {
|
||||||
if (!enabled)
|
if (!enabled)
|
||||||
@@ -62,6 +62,7 @@ Item {
|
|||||||
visible: showText
|
visible: showText
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
id: textColumn
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: Theme.spacingXS
|
spacing: Theme.spacingXS
|
||||||
|
|||||||
Reference in New Issue
Block a user