feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user