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
@@ -4,6 +4,7 @@ import Quickshell
import Quickshell.Io
import QtQuick
import QtQuick.Layouts
import ZShell.Components
import ZShell.Config
import qs.Paths
import qs.Services
@@ -59,7 +60,8 @@ PageBase {
isSubPage: true
title: qsTr("Colors & font")
ColumnLayout {
SnapLayout {
orientation: Qt.Vertical
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
spacing: Tokens.spacing.extraSmall / 2
@@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import ZShell.Components
import ZShell.Models
import qs.Paths
import qs.Helpers
@@ -16,7 +17,8 @@ PageBase {
isSubPage: true
title: qsTr("Wallpapers")
ColumnLayout {
SnapLayout {
orientation: Qt.Vertical
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
@@ -75,7 +77,8 @@ PageBase {
implicitHeight: noWallsLayout.implicitHeight + Tokens.padding.extraLarge * 3
radius: Tokens.rounding.largeIncreased
ColumnLayout {
SnapLayout {
orientation: Qt.Vertical
id: noWallsLayout
anchors.centerIn: parent