forked from Shinonome/dots-hyprland
38 lines
947 B
QML
38 lines
947 B
QML
import "root:/modules/common"
|
|
import "root:/modules/common/widgets"
|
|
import "root:/services"
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
Item {
|
|
id: root
|
|
property real padding: 5
|
|
implicitHeight: Appearance.sizes.baseBarHeight
|
|
height: Appearance.sizes.barHeight
|
|
implicitWidth: rowLayout.implicitWidth + padding * 2
|
|
default property alias items: rowLayout.children
|
|
|
|
Rectangle {
|
|
id: background
|
|
anchors {
|
|
fill: parent
|
|
topMargin: 4
|
|
bottomMargin: 4
|
|
}
|
|
color: Config.options?.bar.borderless ? "transparent" : Appearance.colors.colLayer1
|
|
radius: Appearance.rounding.small
|
|
}
|
|
|
|
RowLayout {
|
|
id: rowLayout
|
|
anchors {
|
|
verticalCenter: parent.verticalCenter
|
|
left: parent.left
|
|
right: parent.right
|
|
leftMargin: root.padding
|
|
rightMargin: root.padding
|
|
}
|
|
spacing: 4
|
|
|
|
}
|
|
} |