Warning, /plasma/kwin/examples/quick-effect/package/contents/ui/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2023 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 import QtQuick 0008 import org.kde.kwin 0009 0010 SceneEffect { 0011 id: effect 0012 0013 delegate: Rectangle { 0014 color: effect.configuration.BackgroundColor 0015 0016 Text { 0017 anchors.centerIn: parent 0018 text: SceneView.screen.name 0019 } 0020 0021 MouseArea { 0022 anchors.fill: parent 0023 onClicked: effect.visible = false 0024 } 0025 } 0026 0027 ScreenEdgeHandler { 0028 enabled: true 0029 edge: ScreenEdgeHandler.TopEdge 0030 onActivated: effect.visible = !effect.visible 0031 } 0032 0033 ShortcutHandler { 0034 name: "Toggle Quick Effect" 0035 text: "Toggle Quick Effect" 0036 sequence: "Meta+Ctrl+Q" 0037 onActivated: effect.visible = !effect.visible 0038 } 0039 0040 PinchGestureHandler { 0041 direction: PinchGestureHandler.Direction.Contracting 0042 fingerCount: 3 0043 onActivated: effect.visible = !effect.visible 0044 } 0045 }