2026-01-15 01:13:17 +01:00
|
|
|
import QtQuick
|
|
|
|
|
import "../../reusables/"
|
|
|
|
|
import "../../settings/"
|
|
|
|
|
import Quickshell.Hyprland
|
|
|
|
|
|
|
|
|
|
Item {
|
2026-01-16 14:44:10 +01:00
|
|
|
id: root
|
|
|
|
|
readonly property var activeWindow: Hyprland.activeToplevel
|
2026-01-18 13:37:04 +01:00
|
|
|
implicitWidth: Math.min(text.implicitWidth, 500)
|
2026-01-15 01:13:17 +01:00
|
|
|
implicitHeight: Settings.config.barHeight
|
2026-01-15 15:14:29 +01:00
|
|
|
CustomText {
|
2026-01-18 13:37:04 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
2026-01-15 15:14:29 +01:00
|
|
|
id: text
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2026-01-16 21:35:03 +01:00
|
|
|
text: root.activeWindow ? Hyprland.activeToplevel.title : "Desktop"
|
2026-01-18 13:37:04 +01:00
|
|
|
elide: Text.ElideRight
|
2026-01-15 01:13:17 +01:00
|
|
|
}
|
|
|
|
|
}
|