force active window size
This commit is contained in:
parent
d0900383e3
commit
51f08ae20f
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue