Blob bounciness #67
+1
-1
@@ -56,7 +56,6 @@ Item {
|
|||||||
anchors.rightMargin: sidebar.width * (1 - sidebar.offsetScale)
|
anchors.rightMargin: sidebar.width * (1 - sidebar.offsetScale)
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
clip: sidebar.visible
|
clip: sidebar.visible
|
||||||
|
|
||||||
implicitHeight: osd.implicitHeight
|
implicitHeight: osd.implicitHeight
|
||||||
implicitWidth: osd.implicitWidth * (1 - osd.offsetScale)
|
implicitWidth: osd.implicitWidth * (1 - osd.offsetScale)
|
||||||
|
|
||||||
@@ -102,6 +101,7 @@ Item {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
panels: root
|
panels: root
|
||||||
|
sidebarPanel: sidebar
|
||||||
visibilities: root.visibilities
|
visibilities: root.visibilities
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -221,7 +221,6 @@ Variants {
|
|||||||
PanelBg {
|
PanelBg {
|
||||||
id: popoutBg
|
id: popoutBg
|
||||||
|
|
||||||
// Extra height to prevent vertical movement deformation partially detaching panel from bar
|
|
||||||
property real extraHeight: panels.popouts.isDetached ? 0 : 0.2
|
property real extraHeight: panels.popouts.isDetached ? 0 : 0.2
|
||||||
|
|
||||||
deformAmount: panels.popouts.isDetached ? 0.05 * Config.appearance.deform.scale : panels.popouts.hasCurrent ? 0.15 * Config.appearance.deform.scale : 0.1 * Config.appearance.deform.scale
|
deformAmount: panels.popouts.isDetached ? 0.05 * Config.appearance.deform.scale : panels.popouts.hasCurrent ? 0.15 * Config.appearance.deform.scale : 0.1 * Config.appearance.deform.scale
|
||||||
|
|||||||
@@ -6,10 +6,11 @@ Item {
|
|||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property Item panels
|
required property Item panels
|
||||||
|
required property Item sidebarPanel
|
||||||
required property var visibilities
|
required property var visibilities
|
||||||
|
|
||||||
implicitHeight: content.implicitHeight
|
implicitHeight: content.implicitHeight
|
||||||
implicitWidth: Math.max(panels.sidebar.width, content.implicitWidth)
|
implicitWidth: content.implicitWidth
|
||||||
visible: height > 0
|
visible: height > 0
|
||||||
|
|
||||||
states: State {
|
states: State {
|
||||||
|
|||||||
@@ -9,16 +9,16 @@ Item {
|
|||||||
id: root
|
id: root
|
||||||
|
|
||||||
readonly property real nonAnimHeight: state === "visible" ? (content.item?.nonAnimHeight ?? 0) : 0
|
readonly property real nonAnimHeight: state === "visible" ? (content.item?.nonAnimHeight ?? 0) : 0
|
||||||
|
property real offsetScale: shouldBeActive ? 0 : 1
|
||||||
|
readonly property bool shouldBeActive: root.visibilities.resources
|
||||||
required property PersistentProperties visibilities
|
required property PersistentProperties visibilities
|
||||||
|
|
||||||
readonly property bool shouldBeActive: root.visibilities.resources
|
|
||||||
property real offsetScale: shouldBeActive ? 0 : 1
|
|
||||||
|
|
||||||
visible: offsetScale < 1
|
|
||||||
anchors.topMargin: (-implicitHeight - 5) * offsetScale
|
anchors.topMargin: (-implicitHeight - 5) * offsetScale
|
||||||
|
clip: true
|
||||||
implicitHeight: content.implicitHeight
|
implicitHeight: content.implicitHeight
|
||||||
implicitWidth: content.implicitWidth || 854 // Hard coded fallback for first open
|
implicitWidth: content.implicitWidth || 854 // Hard coded fallback for first open
|
||||||
opacity: 1 - offsetScale
|
opacity: 1 - offsetScale
|
||||||
|
visible: offsetScale < 1
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {
|
||||||
@@ -30,11 +30,10 @@ Item {
|
|||||||
Loader {
|
Loader {
|
||||||
id: content
|
id: content
|
||||||
|
|
||||||
|
active: root.shouldBeActive || root.visible
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
active: root.shouldBeActive || root.visible
|
|
||||||
|
|
||||||
sourceComponent: Content {
|
sourceComponent: Content {
|
||||||
padding: Appearance.padding.normal
|
padding: Appearance.padding.normal
|
||||||
visibilities: root.visibilities
|
visibilities: root.visibilities
|
||||||
|
|||||||
Reference in New Issue
Block a user