forked from Shinonome/dots-hyprland
toolbar: add make radius configurable
This commit is contained in:
@@ -16,6 +16,7 @@ Item {
|
||||
default property alias data: toolbarLayout.data
|
||||
implicitWidth: background.implicitWidth
|
||||
implicitHeight: background.implicitHeight
|
||||
property alias radius: background.radius
|
||||
|
||||
StyledRectangularShadow {
|
||||
target: background
|
||||
@@ -23,11 +24,11 @@ Item {
|
||||
|
||||
Rectangle {
|
||||
id: background
|
||||
anchors.centerIn: parent
|
||||
anchors.fill: parent
|
||||
color: Appearance.m3colors.m3surfaceContainer // Needs to be opaque
|
||||
implicitHeight: Math.max(toolbarLayout.implicitHeight + root.padding * 2, 56)
|
||||
implicitWidth: toolbarLayout.implicitWidth + root.padding * 2
|
||||
radius: Appearance.rounding.full
|
||||
radius: height / 2
|
||||
|
||||
RowLayout {
|
||||
id: toolbarLayout
|
||||
|
||||
Reference in New Issue
Block a user