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
+5 -5
View File
@@ -7,6 +7,7 @@ import ZShell.Config
import qs.Components
import qs.Services
import qs.Daemons
import ZShell.Components
CustomRect {
id: root
@@ -26,8 +27,7 @@ CustomRect {
state: expanded ? "expanded" : ""
Behavior on implicitHeight {
Anim {
}
Anim {}
}
states: State {
name: "expanded"
@@ -116,14 +116,14 @@ CustomRect {
anchors.topMargin: Tokens.spacing.extraSmall
shouldBeActive: root.expanded
sourceComponent: ExpandedBody {
}
sourceComponent: ExpandedBody {}
}
component ExpandedBody: ColumnLayout {
component ExpandedBody: SnapLayout {
readonly property alias body: bodyText
spacing: Tokens.spacing.medium
orientation: Qt.Vertical
CustomText {
id: bodyText