forked from Shinonome/dots-hyprland
bar: shadow for floating style
This commit is contained in:
@@ -88,8 +88,18 @@ Scope {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Background shadow
|
||||||
|
Loader {
|
||||||
|
active: showBarBackground && ConfigOptions.bar.cornerStyle === 1
|
||||||
|
anchors.fill: barBackground
|
||||||
|
sourceComponent: StyledRectangularShadow {
|
||||||
|
anchors.fill: undefined // The loader's anchors act on this, and this should not have any anchor
|
||||||
|
target: barBackground
|
||||||
|
}
|
||||||
|
}
|
||||||
// Background
|
// Background
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
id: barBackground
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
margins: ConfigOptions.bar.cornerStyle === 1 ? (Appearance.sizes.hyprlandGapsOut) : 0 // idk why but +1 is needed
|
margins: ConfigOptions.bar.cornerStyle === 1 ? (Appearance.sizes.hyprlandGapsOut) : 0 // idk why but +1 is needed
|
||||||
|
|||||||
Reference in New Issue
Block a user