force active window size

This commit is contained in:
lucy 2026-05-14 16:27:19 +02:00
commit 51f08ae20f
2 changed files with 6 additions and 2 deletions

View file

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

View file

@ -28,7 +28,11 @@ Variants {
barHeight: root.implicitHeight
}
ActiveWindow {
vertMargin: barHeight / 4 - 4
barHeight: root.implicitHeight
Layout.maximumWidth: 300
Layout.maximumHeight: barHeight - (barHeight / 4 + 2)
Layout.fillWidth: false
}
}
RowLayout {