NTooltip: subtle gradient, NToggle: onEnter, onExited

This commit is contained in:
quadbyte 2025-08-12 23:04:43 -04:00
parent ce22559ee2
commit 5c9c61cf81
4 changed files with 20 additions and 14 deletions

View file

@ -14,6 +14,8 @@ RowLayout {
property int baseSize: Style.baseWidgetSize
signal toggled(bool balue)
signal entered
signal exited
Layout.fillWidth: true
@ -69,8 +71,14 @@ RowLayout {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onEntered: hovering = true
onExited: hovering = false
onEntered: {
hovering = true
root.entered()
}
onExited: {
hovering = false
root.exited()
}
onClicked: {
value = !value
root.toggled(value)