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
|
clip: true
|
||||||
color: Colors.base01
|
color: Colors.base01
|
||||||
required property int barHeight
|
required property int barHeight
|
||||||
readonly property double vertMargin: barHeight / 4 - 4
|
required property double vertMargin
|
||||||
topMargin: vertMargin
|
topMargin: vertMargin
|
||||||
bottomMargin: vertMargin
|
bottomMargin: vertMargin
|
||||||
leftMargin: 8
|
leftMargin: 8
|
||||||
rightMargin: 8
|
rightMargin: 8
|
||||||
child: StyledText {
|
child: StyledText {
|
||||||
text: Hyprland.activeToplevel?.title ?? "Desktop"
|
text: Hyprland.activeToplevel?.title ?? "Desktop"
|
||||||
width: Math.min(implicitWidth, 50)
|
width: root.width - root.leftMargin - root.rightMargin
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,11 @@ Variants {
|
||||||
barHeight: root.implicitHeight
|
barHeight: root.implicitHeight
|
||||||
}
|
}
|
||||||
ActiveWindow {
|
ActiveWindow {
|
||||||
|
vertMargin: barHeight / 4 - 4
|
||||||
barHeight: root.implicitHeight
|
barHeight: root.implicitHeight
|
||||||
|
Layout.maximumWidth: 300
|
||||||
|
Layout.maximumHeight: barHeight - (barHeight / 4 + 2)
|
||||||
|
Layout.fillWidth: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue