Add blur effect on WindowSwitcher, speeds up listview animation speed
This commit is contained in:
@@ -5,9 +5,8 @@ import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import qs.Services
|
||||
import qs.Common.Styled
|
||||
import qs.Common
|
||||
import Quickshell.Wayland
|
||||
import QtQuick.Effects
|
||||
|
||||
PanelWindow {
|
||||
id: root
|
||||
@@ -26,8 +25,26 @@ PanelWindow {
|
||||
visible: true
|
||||
signal clear
|
||||
|
||||
WlrLayershell.layer: WlrLayer.Overlay
|
||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
|
||||
|
||||
exclusionMode:ExclusionMode.Ignore
|
||||
|
||||
ScreencopyView {
|
||||
id: raveel
|
||||
|
||||
anchors.fill: parent
|
||||
captureSource: screen
|
||||
}
|
||||
|
||||
MultiEffect {
|
||||
source: raveel
|
||||
anchors.fill: raveel
|
||||
blurEnabled: true
|
||||
blurMax: 32
|
||||
blur: 1.0
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: root.clear()
|
||||
@@ -42,6 +59,7 @@ PanelWindow {
|
||||
|
||||
color: "transparent"
|
||||
|
||||
|
||||
ListView {
|
||||
id: listview
|
||||
|
||||
@@ -58,6 +76,7 @@ PanelWindow {
|
||||
}
|
||||
highlightFollowsCurrentItem: true
|
||||
keyNavigationEnabled: false
|
||||
highlightMoveDuration: 100
|
||||
|
||||
Keys.onPressed: event => {
|
||||
switch (event.key) {
|
||||
|
||||
Reference in New Issue
Block a user