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
|
default property alias data: toolbarLayout.data
|
||||||
implicitWidth: background.implicitWidth
|
implicitWidth: background.implicitWidth
|
||||||
implicitHeight: background.implicitHeight
|
implicitHeight: background.implicitHeight
|
||||||
|
property alias radius: background.radius
|
||||||
|
|
||||||
StyledRectangularShadow {
|
StyledRectangularShadow {
|
||||||
target: background
|
target: background
|
||||||
@@ -23,11 +24,11 @@ Item {
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: background
|
id: background
|
||||||
anchors.centerIn: parent
|
anchors.fill: parent
|
||||||
color: Appearance.m3colors.m3surfaceContainer // Needs to be opaque
|
color: Appearance.m3colors.m3surfaceContainer // Needs to be opaque
|
||||||
implicitHeight: Math.max(toolbarLayout.implicitHeight + root.padding * 2, 56)
|
implicitHeight: Math.max(toolbarLayout.implicitHeight + root.padding * 2, 56)
|
||||||
implicitWidth: toolbarLayout.implicitWidth + root.padding * 2
|
implicitWidth: toolbarLayout.implicitWidth + root.padding * 2
|
||||||
radius: Appearance.rounding.full
|
radius: height / 2
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: toolbarLayout
|
id: toolbarLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user