1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

accessibility: widen click targets to bar edge

This commit is contained in:
bbedward
2025-10-23 15:51:59 -04:00
parent a650a79dfc
commit d5c4b990dc
9 changed files with 182 additions and 16 deletions

View File

@@ -97,7 +97,10 @@ BasePill {
}
MouseArea {
anchors.fill: parent
x: -battery.leftMargin
y: -battery.topMargin
width: battery.width + battery.leftMargin + battery.rightMargin
height: battery.height + battery.topMargin + battery.bottomMargin
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton
@@ -108,7 +111,7 @@ BasePill {
const pos = SettingsData.getPopupTriggerPosition(globalPos, currentScreen, barThickness, battery.visualWidth)
popoutTarget.setTriggerPosition(pos.x, pos.y, pos.width, section, currentScreen)
}
toggleBatteryPopup();
toggleBatteryPopup()
}
}
}