quickshell: fix 1px ear alignment on all concave corners

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-27 17:26:12 +01:00
parent a007ed45d7
commit c47787e516

View file

@ -1283,6 +1283,7 @@ in
// Left ear // Left ear
Item { Item {
anchors.right: _dropdownRect.left anchors.right: _dropdownRect.left
anchors.rightMargin: -1
anchors.top: parent.top anchors.top: parent.top
width: 8 width: 8
height: Math.min(8, _dropdownRect.height) height: Math.min(8, _dropdownRect.height)
@ -1312,6 +1313,7 @@ in
// Right ear (for centered dropdowns) // Right ear (for centered dropdowns)
Item { Item {
anchors.left: _dropdownRect.right anchors.left: _dropdownRect.right
anchors.leftMargin: -1
anchors.top: parent.top anchors.top: parent.top
width: 8 width: 8
height: Math.min(8, _dropdownRect.height) height: Math.min(8, _dropdownRect.height)
@ -1402,6 +1404,7 @@ in
visible: dropdown.alignRight && _dropdownRect.height >= 8 visible: dropdown.alignRight && _dropdownRect.height >= 8
anchors.right: _dropdownRect.right anchors.right: _dropdownRect.right
anchors.top: _dropdownRect.bottom anchors.top: _dropdownRect.bottom
anchors.topMargin: -1
width: 8 width: 8
height: Math.min(8, _dropdownRect.height) height: Math.min(8, _dropdownRect.height)
clip: true clip: true
@ -2267,6 +2270,7 @@ in
Item { Item {
id: _toastLeftEar id: _toastLeftEar
anchors.right: _toastRect.left anchors.right: _toastRect.left
anchors.rightMargin: -1
anchors.top: parent.top anchors.top: parent.top
width: 8 width: 8
height: Math.min(8, _toastRect.height) height: Math.min(8, _toastRect.height)
@ -2296,6 +2300,7 @@ in
Item { Item {
id: _toastRightEar id: _toastRightEar
anchors.left: _toastRect.right anchors.left: _toastRect.right
anchors.leftMargin: -1
anchors.top: parent.top anchors.top: parent.top
width: 8 width: 8
height: Math.min(8, _toastRect.height) height: Math.min(8, _toastRect.height)