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