main @ 27 LINES
[ HISTORY ] [ UP ]
┌─ QML ──────────────────────────────────────────────────────────────────────┐
│ import QtQuick │
│ import Quickshell │
│ import Quickshell.Wayland │
│ │
│ PanelWindow { │
│ id: win │
│ visible: Osd.active │
│ color: "transparent" │
│ WlrLayershell.layer: WlrLayer.Overlay │
│ │
│ // top-centered (anchoring one edge centers on the other axis) │
│ anchors { │
│ top: true │
│ } │
│ margins { │
│ top: Config.osdMarginTop │
│ } │
│ │
│ implicitWidth: Math.max(1, slider.implicitWidth) │
│ implicitHeight: Math.max(1, slider.implicitHeight) │
│ exclusiveZone: 0 │
│ │
│ OsdSlider { │
│ id: slider │
│ } │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ QML ────────────────────────────────┐
│ import QtQuick │
│ import Quickshell │
│ import Quickshell.Wayland │
│ │
│ PanelWindow { │
│ id: win │
│ visible: Osd.active │
│ color: "transparent" │
│ WlrLayershell.layer: WlrLayer.Overlay │
│ │
│ // top-centered (anchoring one edge cent │
│ ers on the other axis) │
│ anchors { │
│ top: true │
│ } │
│ margins { │
│ top: Config.osdMarginTop │
│ } │
│ │
│ implicitWidth: Math.max(1, slider.implic │
│ itWidth) │
│ implicitHeight: Math.max(1, slider.impli │
│ citHeight) │
│ exclusiveZone: 0 │
│ │
│ OsdSlider { │
│ id: slider │
│ } │
│ } │
└──────────────────────────────────────────────┘
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET