diff options
| author | Don Williams <Don.e.williams@gmail.com> | 2026-07-13 16:15:49 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:40:35 -0700 |
| commit | c8b343b98c203ac13d4b28bb269a735cf4c03475 (patch) | |
| tree | c76921ca2309c9595fdd02045f33fe9f1684176b /config/quickshell/qs-hyprview-unified/modules/WindowThumbnail.qml | |
| parent | dcc2b56bd34846c5e8562bdb33ea63f3734d5ec0 (diff) | |
Cleaning up quickshell builds
Signed-off-by: Don Williams <Don.e.williams@gmail.com>
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
deleted: overview-trixie/README.md
deleted: overview-trixie/assets/Workspace_Wallpaper.png
deleted: overview-trixie/assets/image.png
deleted: overview-trixie/common/Appearance.qml
deleted: overview-trixie/common/Config.qml
deleted: overview-trixie/common/functions/ColorUtils.qml
deleted: overview-trixie/common/functions/qmldir
deleted: overview-trixie/common/qmldir
deleted: overview-trixie/common/widgets/StyledRectangularShadow.qml
deleted: overview-trixie/common/widgets/StyledText.qml
deleted: overview-trixie/common/widgets/StyledToolTip.qml
deleted: overview-trixie/common/widgets/StyledToolTipContent.qml
deleted: overview-trixie/common/widgets/qmldir
deleted: overview-trixie/config.example.json
deleted: overview-trixie/config.json
deleted: overview-trixie/modules/overview/Overview.qml
deleted: overview-trixie/modules/overview/OverviewWidget.qml
deleted: overview-trixie/modules/overview/OverviewWindow.qml
deleted: overview-trixie/modules/overview/qmldir
deleted: overview-trixie/quickshell-overview.qml
deleted: overview-trixie/services/GlobalStates.qml
deleted: overview-trixie/services/HyprlandData.qml
deleted: overview-trixie/services/qmldir
deleted: overview-trixie/shell.qml
deleted: overview-unified/README.md
deleted: overview-unified/assets/image.png
deleted: overview-unified/common/Appearance.qml
deleted: overview-unified/common/Config.qml
deleted: overview-unified/common/functions/ColorUtils.qml
deleted: overview-unified/common/functions/qmldir
deleted: overview-unified/common/qmldir
deleted: overview-unified/common/widgets/RectangularShadow.qml
deleted: overview-unified/common/widgets/StyledRectangularShadow.qml
deleted: overview-unified/common/widgets/StyledText.qml
deleted: overview-unified/common/widgets/StyledToolTip.qml
deleted: overview-unified/common/widgets/StyledToolTipContent.qml
deleted: overview-unified/common/widgets/qmldir
deleted: overview-unified/modules/overview/Overview.qml
deleted: overview-unified/modules/overview/OverviewWidget.qml
deleted: overview-unified/modules/overview/OverviewWindow.qml
deleted: overview-unified/modules/overview/qmldir
deleted: overview-unified/services/GlobalStates.qml
deleted: overview-unified/services/HyprlandData.qml
deleted: overview-unified/services/qmldir
deleted: overview-unified/shell.qml
renamed: overview-trixie/common/widgets/RectangularShadow.qml -> overview/common/widgets/RectangularShadow.qml
modified: overview/common/widgets/qmldir
deleted: qs-hyprview-unified/LICENSE
deleted: qs-hyprview-unified/README.md
deleted: qs-hyprview-unified/common/Appearance.qml
deleted: qs-hyprview-unified/layouts/BandsLayout.qml
deleted: qs-hyprview-unified/layouts/ColumnarLayout.qml
deleted: qs-hyprview-unified/layouts/HeroLayout.qml
deleted: qs-hyprview-unified/layouts/JustifiedLayout.qml
deleted: qs-hyprview-unified/layouts/LayoutsManager.qml
deleted: qs-hyprview-unified/layouts/MasonryLayout.qml
deleted: qs-hyprview-unified/layouts/SatelliteLayout.qml
deleted: qs-hyprview-unified/layouts/SmartGridLayout.qml
deleted: qs-hyprview-unified/layouts/SpiralLayout.qml
deleted: qs-hyprview-unified/layouts/StarggeredLayout.qml
deleted: qs-hyprview-unified/layouts/VortexLayout.qml
deleted: qs-hyprview-unified/layouts/qmldir
deleted: qs-hyprview-unified/modules/Hyprview.qml
deleted: qs-hyprview-unified/modules/SearchBox.qml
deleted: qs-hyprview-unified/modules/WindowThumbnail.qml
deleted: qs-hyprview-unified/modules/qmldir
deleted: qs-hyprview-unified/qs-hyprview-template.qml
deleted: qs-hyprview-unified/screenshots/bands.jpeg
deleted: qs-hyprview-unified/screenshots/hero.jpeg
deleted: qs-hyprview-unified/screenshots/masonry.jpeg
deleted: qs-hyprview-unified/screenshots/satellite.jpeg
deleted: qs-hyprview-unified/screenshots/smartgrid.jpeg
deleted: qs-hyprview-unified/screenshots/spiral.jpeg
deleted: qs-hyprview-unified/screenshots/staggered.jpeg
deleted: qs-hyprview-unified/screenshots/vortex.jpeg
deleted: qs-hyprview-unified/shell.qml
modified: qs-hyprview/modules/WindowThumbnail.qml
Diffstat (limited to 'config/quickshell/qs-hyprview-unified/modules/WindowThumbnail.qml')
| -rw-r--r-- | config/quickshell/qs-hyprview-unified/modules/WindowThumbnail.qml | 277 |
1 files changed, 0 insertions, 277 deletions
diff --git a/config/quickshell/qs-hyprview-unified/modules/WindowThumbnail.qml b/config/quickshell/qs-hyprview-unified/modules/WindowThumbnail.qml deleted file mode 100644 index 26834814..00000000 --- a/config/quickshell/qs-hyprview-unified/modules/WindowThumbnail.qml +++ /dev/null @@ -1,277 +0,0 @@ -import QtQuick -import QtQuick.Effects -import Quickshell -import Quickshell.Io -import Quickshell.Widgets -import Quickshell.Wayland -import Quickshell.Hyprland -import Qt5Compat.GraphicalEffects - -Item { - id: thumbContainer - - property var hWin: null - property var wHandle:null - - property string winKey: '' - - property real thumbW: -1 - property real thumbH: -1 - - property var clientInfo: {} - property bool hovered: false - - property real targetX: -1000 - property real targetY: -1000 - property real targetZ: 0 - property real targetRotation: 0 - - property bool moveCursorToActiveWindow: false - - width: thumbW - height: thumbH - - x: 0 - y: 0 - z: targetZ - rotation: 0 - - visible: !!wHandle - - NumberAnimation { - id: animX - target: thumbContainer - property: "x" - duration: root.animateWindows ? 100 : 0 - easing.type: Easing.OutQuad - } - NumberAnimation { - id: animY - target: thumbContainer - property: "y" - duration: root.animateWindows ? 100 : 0 - easing.type: Easing.OutQuad - } - NumberAnimation { - id: animRotation - target: thumbContainer - property: "rotation" - duration: 400 - easing.type: Easing.OutBack // Effetto rimbalzo/inerzia - easing.overshoot: 1.2 - } - - function updateLastPos() { - var lp = root.lastPositions || ({}) - var prev = lp[winKey] || ({}) - prev.x = x - prev.y = y - lp[winKey] = prev - root.lastPositions = lp - } - - onTargetXChanged: { - if (!root.animateWindows) { - x = targetX - updateLastPos() - return - } - - var lp = root.lastPositions || ({}) - var prev = lp[winKey] - var startX = (prev && prev.x !== undefined) ? prev.x : targetX - - if (startX === targetX) { - x = targetX - updateLastPos() - return - } - - animX.stop() - animX.from = startX - animX.to = targetX - animX.start() - } - - onTargetYChanged: { - if (!root.animateWindows) { - y = targetY - updateLastPos() - return - } - - var lp = root.lastPositions || ({}) - var prev = lp[winKey] - var startY = (prev && prev.y !== undefined) ? prev.y : targetY - - if (startY === targetY) { - y = targetY - updateLastPos() - return - } - - animY.stop() - animY.from = startY - animY.to = targetY - animY.start() - } - - onTargetRotationChanged: { - rotation = targetRotation - animRotation.stop() - animRotation.from = 0 - animRotation.to = targetRotation - animRotation.start() - } - - onXChanged: updateLastPos() - onYChanged: updateLastPos() - - Component.onCompleted: { - rotation = targetRotation - if (!root.animateWindows) { - x = targetX - y = targetY - updateLastPos() - } - } - - function activateWindow() { - if (!hWin) return - - var targetIsSpecial = (hWin?.workspace ?? 0) < 0 || (hWin?.workspace?.name ?? "").startsWith("special") - - if (root.specialActive && !targetIsSpecial) { - Hyprland.dispatch("togglespecialworkspace") - } - - if (hWin.workspace) { - hWin.workspace.activate() - } - - root.toggleExpose() - Hyprland.dispatch("focuswindow address:0x" + hWin.address) - Hyprland.dispatch("alterzorder top") - if (thumbContainer.moveCursorToActiveWindow) { - var cx = clientInfo.at[0] + (clientInfo.size[0]/2) - var cy = clientInfo.at[1] + (clientInfo.size[1]/2) - Hyprland.dispatch("movecursor " + cx + " " + cy) - - } - } - - function closeWindow() { - if (!hWin) return - Hyprland.dispatch("closewindow address:0x" + hWin.address) - } - - function refreshThumb() { - if (thumbLoader.item) { - thumbLoader.item.captureFrame() - } - } - - Item { - id: card - anchors.fill: parent - - scale: thumbContainer.hovered ? 1.05 : 0.95 - transformOrigin: Item.Center - - Behavior on scale { - NumberAnimation { duration: 100; easing.type: Easing.OutQuad } - } - - MouseArea { - anchors.fill: parent - hoverEnabled: true - cursorShape: Qt.PointingHandCursor - acceptedButtons: Qt.LeftButton | Qt.MiddleButton - - onEntered: { - exposeArea.currentIndex = index - } - onClicked: event => { - exposeArea.currentIndex = index - - if (event.button === Qt.LeftButton) { - thumbContainer.activateWindow() - } - if (event.button === Qt.MiddleButton) { - thumbContainer.closeWindow() - } - } - onExited: { - if (exposeArea.currentIndex === index) { - exposeArea.currentIndex = -1 - } - } - } - - Rectangle { - anchors.fill: parent - anchors.margins: -8 - radius: 22 - color: "#55000000" - z: -1 - } - - Loader { - id: thumbLoader - anchors.fill: parent - active: root.isActive && !!thumbContainer.wHandle - sourceComponent: ScreencopyView { - id: thumb - anchors.fill: parent - captureSource: thumbContainer.wHandle - live: root.liveCapture && root.isActive - paintCursor: false - visible: root.isActive && thumbContainer.wHandle && hasContent - - layer.enabled: true - layer.effect: OpacityMask { - maskSource: Rectangle { - width: thumb.width - height: thumb.height - radius: 16 - } - } - - Rectangle { - anchors.fill: parent - color: thumbContainer.hovered ? "transparent": "#33000000" - border.width : thumbContainer.hovered ? 3 : 1 - border.color : thumbContainer.hovered ? m3.m3Primary : m3.m3Secondary - radius: 16 - } - } - } - - Rectangle { - id: badge - z: 100 - width: Math.min(titleText.implicitWidth + 24, thumbContainer.thumbW * 0.75) - height: titleText.implicitHeight + 12 - - x: (card.width - width) / 2 - y: card.height - height - (card.height * 0.08) - - radius: 12 - color: thumbContainer.hovered ? "#FF000000" : "#CC000000" - border.width : 1 - border.color : "#ff464646" - - Text { - id: titleText - anchors.centerIn: parent - width: parent.width - 16 - text: hWin.title - color: "white" - font.pixelSize: thumbContainer.hovered ? 13 : 12 - elide: Text.ElideRight - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - } -} |
