import Quickshell.Widgets import Quickshell.Hyprland import QtQuick import qs import qs.widgets ClippingWrapperRectangle { id: root clip: true color: Colors.base01 required property int barHeight readonly property double vertMargin: barHeight / 4 - 4 topMargin: vertMargin bottomMargin: vertMargin leftMargin: 8 rightMargin: 8 child: StyledText { text: Hyprland.activeToplevel?.title ?? "Desktop" width: Math.min(implicitWidth, 50) elide: Text.ElideRight } }