43 lines
939 B
QML
43 lines
939 B
QML
|
// SPDX-FileCopyrightText: None
|
||
|
// SPDX-License-Identifier: CC0-1.0
|
||
|
|
||
|
import QtQuick
|
||
|
import org.kde.kwin
|
||
|
|
||
|
SceneEffect {
|
||
|
id: effect
|
||
|
|
||
|
delegate: Rectangle {
|
||
|
color: effect.configuration.BackgroundColor
|
||
|
|
||
|
Text {
|
||
|
anchors.centerIn: parent
|
||
|
text: SceneView.screen.name
|
||
|
}
|
||
|
|
||
|
MouseArea {
|
||
|
anchors.fill: parent
|
||
|
onClicked: effect.visible = false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ScreenEdgeHandler {
|
||
|
enabled: true
|
||
|
edge: ScreenEdgeHandler.TopEdge
|
||
|
onActivated: effect.visible = !effect.visible
|
||
|
}
|
||
|
|
||
|
ShortcutHandler {
|
||
|
name: "Toggle Quick Effect"
|
||
|
text: "Toggle Quick Effect"
|
||
|
sequence: "Meta+Ctrl+Q"
|
||
|
onActivated: effect.visible = !effect.visible
|
||
|
}
|
||
|
|
||
|
PinchGestureHandler {
|
||
|
direction: PinchGestureHandler.Direction.Contracting
|
||
|
fingerCount: 3
|
||
|
onActivated: effect.visible = !effect.visible
|
||
|
}
|
||
|
}
|