feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
+10
-4
@@ -3,17 +3,20 @@ pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import ZShell.Config
|
||||
import ZShell.Components
|
||||
import qs.Components
|
||||
import qs.Services
|
||||
|
||||
ColumnLayout {
|
||||
SnapLayout {
|
||||
id: root
|
||||
|
||||
required property var greeter
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.margins: Tokens.padding.large
|
||||
|
||||
spacing: Tokens.spacing.large
|
||||
orientation: Qt.Vertical
|
||||
|
||||
CustomText {
|
||||
Layout.fillWidth: true
|
||||
@@ -37,8 +40,9 @@ ColumnLayout {
|
||||
duration: Tokens.anim.durations.extraLarge
|
||||
}
|
||||
}
|
||||
sourceComponent: ColumnLayout {
|
||||
sourceComponent: SnapLayout {
|
||||
spacing: Tokens.spacing.largeIncreased
|
||||
orientation: Qt.Vertical
|
||||
|
||||
MaterialIcon {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
@@ -84,7 +88,7 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
SnapLayout {
|
||||
id: row
|
||||
|
||||
anchors.fill: parent
|
||||
@@ -97,9 +101,11 @@ ColumnLayout {
|
||||
text: modelData.kind === "x11" ? "tv" : "desktop_windows"
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
SnapLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
spacing: Tokens.spacing.small / 2
|
||||
orientation: Qt.Vertical
|
||||
|
||||
CustomText {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Reference in New Issue
Block a user