mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
opacity change on stripe touch
This commit is contained in:
parent
21afca51f1
commit
06bde8ab6d
1 changed files with 9 additions and 0 deletions
|
|
@ -81,10 +81,19 @@ Leaves {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onPressed: {
|
onPressed: {
|
||||||
|
if (stripe.opacity < 1) {
|
||||||
|
stripe.opacity = 1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
stripe.lockKeyPressed(stripe.childAt(mouseX, mouseY).value);
|
stripe.lockKeyPressed(stripe.childAt(mouseX, mouseY).value);
|
||||||
}
|
}
|
||||||
|
|
||||||
onReleased: {
|
onReleased: {
|
||||||
|
if (stripe.opacity < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
stripe.lockKeyReleased(stripe.childAt(mouseX, mouseY).value);
|
stripe.lockKeyReleased(stripe.childAt(mouseX, mouseY).value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue