mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23: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 {
|
||||
anchors.fill: parent
|
||||
onPressed: {
|
||||
if (stripe.opacity < 1) {
|
||||
stripe.opacity = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
stripe.lockKeyPressed(stripe.childAt(mouseX, mouseY).value);
|
||||
}
|
||||
|
||||
onReleased: {
|
||||
if (stripe.opacity < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
stripe.lockKeyReleased(stripe.childAt(mouseX, mouseY).value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue