From 4a86b66d06dda958f8d136234225ed160604a61a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 21 Jun 2025 22:47:13 +1000 Subject: feat: window info panel Also disable reload popup --- modules/bar/popouts/Content.qml | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) (limited to 'modules/bar/popouts/Content.qml') diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index 43a0a09..2c10e5f 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -9,15 +9,15 @@ import QtQuick Item { id: root + required property Item wrapper required property ShellScreen screen - - property string currentName - property real currentCenter - property bool hasCurrent + required property string currentName + required property real currentCenter + required property bool hasCurrent anchors.centerIn: parent - implicitWidth: hasCurrent ? (content.children.find(c => c.shouldBeActive)?.implicitWidth ?? 0) + Appearance.padding.large * 2 : 0 + implicitWidth: (content.children.find(c => c.shouldBeActive)?.implicitWidth ?? 0) + Appearance.padding.large * 2 implicitHeight: (content.children.find(c => c.shouldBeActive)?.implicitHeight ?? 0) + Appearance.padding.large * 2 Item { @@ -26,11 +26,11 @@ Item { anchors.fill: parent anchors.margins: Appearance.padding.large - clip: true - Popout { name: "activewindow" - source: "ActiveWindow.qml" + sourceComponent: ActiveWindow { + wrapper: root.wrapper + } } Popout { @@ -85,30 +85,6 @@ Item { } } - Behavior on implicitWidth { - Anim { - easing.bezierCurve: Appearance.anim.curves.emphasized - } - } - - Behavior on implicitHeight { - enabled: root.implicitWidth > 0 - - Anim { - easing.bezierCurve: Appearance.anim.curves.emphasized - } - } - - Behavior on currentCenter { - enabled: root.implicitWidth > 0 - - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.emphasized - } - } - component Popout: Loader { id: popout -- cgit v1.2.3-freya