feat: initial commit for pixel-snapping components and helpers

This commit is contained in:
2026-10-29 17:34:57 +01:00
parent 9d8bde1413
commit 9cbb90f9e1
163 changed files with 2671 additions and 951 deletions
@@ -26,11 +26,13 @@ Item {
border.width: 1
border.color: Colors.palette.m3outlineVariant
ColumnLayout {
SnapLayout {
id: approvalLayout
anchors.fill: parent
anchors.margins: Tokens.padding.medium
spacing: Tokens.spacing.small
orientation: Qt.Vertical
CustomText {
id: requestHeader
@@ -187,19 +189,22 @@ Item {
}
}
ColumnLayout {
SnapLayout {
id: toolList
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.margins: Tokens.padding.medium
spacing: Tokens.spacing.extraSmall
orientation: Qt.Vertical
Repeater {
id: repeater
model: root.current.pendingToolCalls?.slice(0, 4) ?? []
delegate: RowLayout {
delegate: SnapLayout {
id: toolText
required property var modelData
@@ -304,7 +309,7 @@ Item {
Anim {}
}
RowLayout {
SnapLayout {
id: collapsedRow
anchors.top: parent.top
@@ -312,6 +317,8 @@ Item {
anchors.right: parent.right
anchors.margins: Tokens.padding.medium
spacing: Tokens.spacing.extraSmall
IconButton {
id: toolExpandBtn