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
+11 -6
View File
@@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import ZShell.Components
import Quickshell
import qs.Components
import ZShell.Config
@@ -48,7 +49,8 @@ VerticalFadeFlickable {
onTapped: root.focus = true
}
ColumnLayout {
SnapLayout {
orientation: Qt.Vertical
id: content
anchors.left: parent.left
@@ -98,7 +100,7 @@ VerticalFadeFlickable {
onClicked: root.sState.currentPageIdx = item.index
}
RowLayout {
SnapLayout {
id: layout
anchors.fill: parent
@@ -124,7 +126,8 @@ VerticalFadeFlickable {
}
}
ColumnLayout {
SnapLayout {
orientation: Qt.Vertical
Layout.fillWidth: true
spacing: 0
@@ -179,7 +182,8 @@ VerticalFadeFlickable {
values: root.groups
}
ColumnLayout {
SnapLayout {
orientation: Qt.Vertical
id: group
required property int index
@@ -188,7 +192,7 @@ VerticalFadeFlickable {
spacing: Tokens.spacing.small
width: resultList.width
RowLayout {
SnapLayout {
Layout.fillWidth: true
Layout.leftMargin: Tokens.padding.extraSmall
spacing: Tokens.spacing.small
@@ -265,7 +269,8 @@ VerticalFadeFlickable {
RadiusBehavior on topLeftRadius {}
RadiusBehavior on topRightRadius {}
ColumnLayout {
SnapLayout {
orientation: Qt.Vertical
id: resultLayout
anchors.fill: parent