quickshell/modules/bar/ActiveWindow.qml
2026-05-14 18:31:21 +02:00

22 lines
521 B
QML

import Quickshell.Widgets
import Quickshell.Hyprland
import QtQuick
import qs
import qs.widgets
WrapperRectangle {
id: root
clip: true
color: Colors.base01
required property int barHeight
required property double vertMargin
topMargin: vertMargin
bottomMargin: vertMargin
leftMargin: 8
rightMargin: 8
child: StyledText {
text: Hyprland.activeToplevel?.title ?? "Desktop"
width: root.width - root.leftMargin - root.rightMargin
elide: Text.ElideRight
}
}