forked from Shinonome/dots-hyprland
dock: fix bottom spacing
This commit is contained in:
@@ -34,7 +34,9 @@ Scope { // Scope
|
|||||||
function hide() {
|
function hide() {
|
||||||
cheatsheetLoader.active = false
|
cheatsheetLoader.active = false
|
||||||
}
|
}
|
||||||
exclusiveZone: root.pinned ? implicitHeight - Appearance.sizes.hyprlandGapsOut : 0
|
exclusiveZone: root.pinned ? implicitHeight
|
||||||
|
- (Appearance.sizes.hyprlandGapsOut)
|
||||||
|
- (Appearance.sizes.elevationMargin - Appearance.sizes.hyprlandGapsOut) : 0
|
||||||
|
|
||||||
implicitWidth: dockBackground.implicitWidth
|
implicitWidth: dockBackground.implicitWidth
|
||||||
WlrLayershell.namespace: "quickshell:dock"
|
WlrLayershell.namespace: "quickshell:dock"
|
||||||
@@ -63,11 +65,13 @@ Scope { // Scope
|
|||||||
id: dockHoverRegion
|
id: dockHoverRegion
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Item {
|
Item { // Wrapper for the dock background
|
||||||
id: dockBackground
|
id: dockBackground
|
||||||
anchors.top: parent.top
|
anchors {
|
||||||
anchors.bottom: parent.bottom
|
top: parent.top
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
bottom: parent.bottom
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
|
|
||||||
implicitWidth: dockRow.implicitWidth + 5 * 2
|
implicitWidth: dockRow.implicitWidth + 5 * 2
|
||||||
height: parent.height - Appearance.sizes.elevationMargin - Appearance.sizes.hyprlandGapsOut
|
height: parent.height - Appearance.sizes.elevationMargin - Appearance.sizes.hyprlandGapsOut
|
||||||
@@ -75,12 +79,12 @@ Scope { // Scope
|
|||||||
StyledRectangularShadow {
|
StyledRectangularShadow {
|
||||||
target: dockVisualBackground
|
target: dockVisualBackground
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle { // The real rectangle that is visible
|
||||||
id: dockVisualBackground
|
id: dockVisualBackground
|
||||||
property real margin: Appearance.sizes.elevationMargin
|
property real margin: Appearance.sizes.elevationMargin
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: margin
|
anchors.topMargin: margin
|
||||||
anchors.bottomMargin: margin
|
anchors.bottomMargin: Appearance.sizes.hyprlandGapsOut
|
||||||
color: Appearance.colors.colLayer0
|
color: Appearance.colors.colLayer0
|
||||||
radius: Appearance.rounding.large
|
radius: Appearance.rounding.large
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user