From f9efa56caeeb5289d6b2314e50041a1b7055a3c8 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 5 Aug 2025 17:25:30 +0800 Subject: feat: add launcher support and image clipboard history utility - Integrated a new Launcher component into the shell.qml for improved application launching. - Implemented an IPC handler to toggle the launcher visibility. - Added a new script (cliphist-img.sh) to manage image history from the clipboard. - Removed the outdated fuzzysort.js utility to streamline the codebase. - Refactored the Levenshtein distance algorithm for better performance and clarity. --- bar/ActiveWindow.qml | 4 ++-- bar/Mpris.qml | 4 ++-- bar/Workspace.qml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'bar') diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml index db69e3e..fe239ed 100644 --- a/bar/ActiveWindow.qml +++ b/bar/ActiveWindow.qml @@ -45,8 +45,8 @@ IRect { IconImage { id: icon source: root.icon - implicitWidth: Bar.appIconSize - implicitHeight: Bar.appIconSize + implicitWidth: General.appIconSize + implicitHeight: General.appIconSize // sync animation opacity: root.activated ? 1 : 0 diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 88f5b16..092e459 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -99,8 +99,8 @@ Item { Item { Layout.preferredWidth: childrenRect.width Layout.preferredHeight: childrenRect.height - width: Bar.appIconSize - height: Bar.appIconSize + width: General.appIconSize + height: General.appIconSize opacity: activePlayer?.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity diff --git a/bar/Workspace.qml b/bar/Workspace.qml index e04ad75..ebeeb6c 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -79,7 +79,7 @@ Item { easing.type: Easing.InOutQuad } } - Behavior on implicitWidth { + Behavior on width { NumberAnimation { duration: Bar.wsAnimationDuration easing.type: Easing.InOutQuad -- cgit v1.2.3