remove useless margin stuff
This commit is contained in:
parent
608d8bbfce
commit
0d20fc7313
9 changed files with 64 additions and 53 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue