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
@@ -2,9 +2,10 @@ pragma ComponentBehavior: Bound
import Quickshell
import QtQuick
import ZShell
import ZShell.Config
import qs.Components
import qs.Helpers
import ZShell.Config
import qs.Daemons
Item {
@@ -30,8 +31,8 @@ Item {
}
anchors.rightMargin: (-implicitWidth - 5 - sidebarOffset) * offsetScale
implicitHeight: content.implicitHeight
implicitWidth: content.implicitWidth
implicitHeight: ZUtils.snap(content.implicitHeight, root)
implicitWidth: ZUtils.snap(content.implicitWidth, root)
opacity: 1 - offsetScale
visible: offsetScale < 1
@@ -98,8 +99,7 @@ Item {
id: content
active: root.shouldBeActive || root.visible
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
anchors.fill: parent
sourceComponent: Content {
brightness: root.brightness