22 lines
533 B
QML
22 lines
533 B
QML
pragma ComponentBehavior: Bound
|
|
import Quickshell.Wayland
|
|
import Quickshell
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.widgets
|
|
import qs.settings
|
|
|
|
BarComponent {
|
|
id: root
|
|
required property ShellScreen screen
|
|
implicitWidth: windowText.implicitWidth + 16
|
|
RowLayout {
|
|
id: windowText
|
|
anchors.centerIn: parent
|
|
StyledText {
|
|
Layout.maximumWidth: root.screen.width / 4
|
|
text: ToplevelManager.activeToplevel?.title ?? "Desktop"
|
|
elide: Text.ElideRight
|
|
}
|
|
}
|
|
}
|