bouncy button group for toggles

This commit is contained in:
end-4
2025-05-24 13:10:49 +02:00
parent e7e55e7f95
commit 0cf12bc3be
6 changed files with 64 additions and 37 deletions
@@ -137,7 +137,7 @@ Scope {
Layout.fillHeight: false
radius: Appearance.rounding.full
color: Appearance.colors.colLayer1
implicitWidth: sidebarQuickControlsRow.implicitWidth + 10
width: 40 * sidebarQuickControlsRow.children.length + sidebarQuickControlsRow.spacing * (sidebarQuickControlsRow.children.length-1) + 10
implicitHeight: sidebarQuickControlsRow.implicitHeight + 10
@@ -146,13 +146,18 @@ Scope {
anchors.fill: parent
anchors.margins: 5
spacing: 5
width: 40 * sidebarQuickControlsRow.children.length
property int clickIndex: -1
onClickIndexChanged: {
console.log("Click index changed to: " + clickIndex);
}
NetworkToggle {}
BluetoothToggle {}
NightLight {}
GameMode {}
IdleInhibitor {}
}
}