1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

widgets: dynamic DankToggle height

This commit is contained in:
bbedward
2025-12-30 22:24:48 -05:00
parent f1a876301b
commit 1edecb05bb

View File

@@ -27,7 +27,7 @@ Item {
readonly property int insetCircle: 24
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() {
if (!enabled)
@@ -62,6 +62,7 @@ Item {
visible: showText
Column {
id: textColumn
width: parent.width
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingXS