remove useless margin stuff

This commit is contained in:
lucy 2026-05-15 19:56:10 +02:00
commit 0d20fc7313
9 changed files with 64 additions and 53 deletions

View file

@ -1,24 +1,27 @@
import Quickshell.Widgets
import Quickshell.Hyprland
import QtQuick
import QtQuick.Layouts
import qs
import qs.widgets
import qs.settings
WrapperRectangle {
ClippingWrapperRectangle {
id: root
clip: true
color: Colors.base01
required property int barHeight
required property double vertMargin
radius: Config.rounding
topMargin: vertMargin
bottomMargin: vertMargin
leftMargin: 8
rightMargin: 8
child: StyledText {
text: Hyprland.activeToplevel?.title ?? "Desktop"
width: root.width - root.leftMargin - root.rightMargin
elide: Text.ElideRight
child: RowLayout {
WrapperRectangle {
Layout.fillHeight: true
color: 'transparent'
clip: true
StyledText {
text: Hyprland.activeToplevel?.title ?? "Desktop"
elide: Text.ElideRight
}
}
}
}