diff --git a/quickshell/bar/Bar.qml b/quickshell/bar/Bar.qml index dacd656..4ce591c 100644 --- a/quickshell/bar/Bar.qml +++ b/quickshell/bar/Bar.qml @@ -26,6 +26,9 @@ PanelWindow { // Notch mode splits the bar into a left island, the centre notch and a // right island; only those take input. readonly property bool notch: ShellState.notchMode + // The islands share the notch's centre line (the notch runs from the top + // edge to the bar's bottom), so they line up with its clock. + readonly property int islandY: Math.round((BarDrawers.bottom - BarDrawers.height) / 2) mask: Region { item: root.notch ? leftIsland : panel Region { item: root.notch ? notchPill : null; intersection: Intersection.Combine } @@ -111,7 +114,7 @@ PanelWindow { plain: true visible: root.notch && ConfigService.ready && ConfigService.data.notch.left.length > 0 x: root.outerMargin - y: root.outerMargin + y: root.islandY width: leftRow.implicitWidth + 12 height: BarDrawers.height radius: BarDrawers.radius @@ -125,7 +128,7 @@ PanelWindow { plain: true visible: root.notch && ConfigService.ready && ConfigService.data.notch.right.length > 0 x: root.width - root.outerMargin - width - y: root.outerMargin + y: root.islandY width: rightRow.implicitWidth + 12 height: BarDrawers.height radius: BarDrawers.radius