Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++
2.3 KB
Raw Blame
// A page of the shell (app.css .page): shown while current or while sinking out.
// Main.qml owns the switch (core.js app.go); this only reads its state. The sink
// is @keyframes sink { to { opacity: 0; transform: scale(.985) } } over .22s --out,
// and the sinking page takes no input (.page.leave { pointer-events: none }).
// enter() is emitted when the page shows through an animated switch; the VRise
// items declared directly in the page play on it.
import QtQuick

Item {
    id: page
    property string pageId
    signal enter()
    // The item the page sits in (Main.qml's page stack). A page that is neither shown nor
    // sinking out leaves the scene: its live bindings kept changing while hidden and Qt
    // redrew the whole window for each change (~11 times a second during capture), which
    // cost GPU time and kept OBS game capture on the UI instead of the video.
    property Item home: null
    parent: (current || leaving) ? home : null
    readonly property var shell: home ? home.Window.window : null
    readonly property bool current: shell !== null && shell.shownPage === pageId
    readonly property bool leaving: shell !== null && shell.leavingPage === pageId
    width: home ? home.width : 0
    height: home ? home.height : 0
    visible: current || leaving
    // Title-bar behaviour on the page's top strip (field request 2026-10-01: only the
    // dock capsule moved the window). Below the page's own items, so buttons and fields
    // there keep their clicks; empty space drags, a double click maximizes. Pages whose
    // top is the picture set a smaller strip (node) or none (min).
    property real dragStripHeight: 56
    Item {
        objectName: "page-drag-strip"
        z: -1
        x: 0; y: 0
        width: page.width
        height: page.dragStripHeight
        visible: height > 0
        DragHandler {
            target: null
            enabled: page.shell !== null && !page.shell.fullscreen && !page.shell.maximized
            onActiveChanged: if (active) page.shell.startSystemMove()
        }
        TapHandler {
            enabled: page.shell !== null && !page.shell.fullscreen
            onDoubleTapped: page.shell.toggleMaximized()
        }
    }
    enabled: current
    opacity: leaving ? 1 - shell.leaveT : 1
    scale: leaving ? 1 - 0.015 * shell.leaveT : 1
}