pragma ComponentBehavior: Bound import Quickshell.Widgets import Quickshell.Hyprland import QtQuick import QtQuick.Layouts import qs import qs.widgets import qs.settings import QtQuick.Effects Rectangle { id: root required property double moduleHeight layer.enabled: true layer.effect: MultiEffect { id: dropShadow source: root shadowEnabled: true shadowHorizontalOffset: 4 shadowVerticalOffset: 2 shadowOpacity: 0.5 shadowColor: "#020202" } implicitHeight: moduleHeight implicitWidth: titleLayout.width + 32 color: Colors.moduleBg radius: Config.rounding RowLayout { id: titleLayout anchors.centerIn: root WrapperRectangle { Layout.maximumWidth: 400 color: 'transparent' clip: true StyledText { property bool onWs: Hyprland.activeToplevel?.workspace == Hyprland.focusedWorkspace text: onWs ? Hyprland.activeToplevel?.title ?? "Desktop" : "Desktop" elide: Text.ElideRight } } } }