feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
@@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import ZShell.Components
|
||||
import ZShell.Config
|
||||
import ZShell
|
||||
import qs.Components
|
||||
@@ -39,8 +40,8 @@ Item {
|
||||
];
|
||||
return allTabs.filter(tab => tab.enabled);
|
||||
}
|
||||
readonly property real nonAnimHeight: tabs.implicitHeight + tabs.anchors.topMargin + view.implicitHeight + viewWrapper.anchors.margins + viewWrapper.anchors.topMargin
|
||||
readonly property real nonAnimWidth: view.implicitWidth + viewWrapper.anchors.margins * 2
|
||||
readonly property real nonAnimHeight: ZUtils.snap(tabs.implicitHeight + tabs.anchors.topMargin + view.implicitHeight + viewWrapper.anchors.margins + viewWrapper.anchors.topMargin, root)
|
||||
readonly property real nonAnimWidth: ZUtils.snap(view.implicitWidth + viewWrapper.anchors.margins * 2, root)
|
||||
required property ScreenState screenState
|
||||
|
||||
implicitHeight: nonAnimHeight
|
||||
@@ -93,8 +94,8 @@ Item {
|
||||
}
|
||||
|
||||
anchors.fill: parent
|
||||
implicitHeight: currentItem?.implicitHeight ?? 0
|
||||
implicitWidth: currentItem?.implicitWidth ?? 0
|
||||
implicitHeight: currentItem?.height ?? currentItem?.implicitHeight ?? 0
|
||||
implicitWidth: currentItem?.width ?? currentItem?.implicitWidth ?? 0
|
||||
|
||||
Repeater {
|
||||
id: repeater
|
||||
|
||||
Reference in New Issue
Block a user