summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-05 17:25:30 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-05 17:25:30 +0800
commitf9efa56caeeb5289d6b2314e50041a1b7055a3c8 (patch)
tree8a9e5b59f8690555ba8ad51f653db02d9483e2a7 /bar
parentf6b5ac3cfba03602fea9d8c30b13075514dbd131 (diff)
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.
Diffstat (limited to 'bar')
-rw-r--r--bar/ActiveWindow.qml4
-rw-r--r--bar/Mpris.qml4
-rw-r--r--bar/Workspace.qml2
3 files changed, 5 insertions, 5 deletions
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