This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nova-shell/modules/BarGroup.qml
2026-04-12 17:04:30 +02:00

53 lines
1.2 KiB
QML

import QtQuick
import QtQuick.Effects
import "." as M
Item {
id: root
default property alias content: row.children
property color borderColor: M.Theme.base02
visible: row.visibleChildren.length > 0
implicitWidth: row.implicitWidth + _pad * 2
implicitHeight: row.implicitHeight + _pad * 2
readonly property int _pad: 6
// Shadow source — rendered offscreen, only its glow is visible
Rectangle {
id: shadowSource
anchors.fill: parent
color: "transparent"
border.color: root.borderColor
border.width: 1
radius: M.Theme.radius
visible: false
}
MultiEffect {
source: shadowSource
anchors.fill: shadowSource
shadowEnabled: true
shadowColor: root.borderColor
shadowBlur: 0.6
shadowVerticalOffset: 0
shadowHorizontalOffset: 0
}
// Visible border (on top of the glow)
Rectangle {
anchors.fill: parent
color: "transparent"
border.color: root.borderColor
border.width: 1
radius: M.Theme.radius
}
Row {
id: row
anchors.centerIn: parent
spacing: M.Theme.moduleSpacing + 2
}
}