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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user