Add blur effect on WindowSwitcher, speeds up listview animation speed

This commit is contained in:
2025-10-14 00:35:43 -03:00
parent edca97f4c5
commit 7e16362f96

View File

@@ -5,9 +5,8 @@ import QtQuick.Layouts
import Quickshell import Quickshell
import Quickshell.Widgets import Quickshell.Widgets
import qs.Services import qs.Services
import qs.Common.Styled
import qs.Common
import Quickshell.Wayland import Quickshell.Wayland
import QtQuick.Effects
PanelWindow { PanelWindow {
id: root id: root
@@ -26,8 +25,26 @@ PanelWindow {
visible: true visible: true
signal clear signal clear
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand 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 { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: root.clear() onClicked: root.clear()
@@ -42,6 +59,7 @@ PanelWindow {
color: "transparent" color: "transparent"
ListView { ListView {
id: listview id: listview
@@ -58,6 +76,7 @@ PanelWindow {
} }
highlightFollowsCurrentItem: true highlightFollowsCurrentItem: true
keyNavigationEnabled: false keyNavigationEnabled: false
highlightMoveDuration: 100
Keys.onPressed: event => { Keys.onPressed: event => {
switch (event.key) { switch (event.key) {