summaryrefslogtreecommitdiff
path: root/components
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 /components
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 'components')
-rw-r--r--components/IRect.qml20
-rw-r--r--components/IText.qml2
-rw-r--r--components/IWindow.qml1
3 files changed, 16 insertions, 7 deletions
diff --git a/components/IRect.qml b/components/IRect.qml
index e5733bf..383affa 100644
--- a/components/IRect.qml
+++ b/components/IRect.qml
@@ -2,10 +2,18 @@ import QtQuick
import qs.config
Rectangle {
- Behavior on color {
- ColorAnimation {
- duration: General.animationDuration
- easing.type: Easing.InOutQuad
- }
- }
+ Behavior on color {
+ NumberAnimation {
+ duration: General.animationDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
+
+ // TODO: use visible instead of opacity for perf, but we need to animate the opacity then set visible
+ Behavior on opacity {
+ NumberAnimation {
+ duration: General.animationDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
}
diff --git a/components/IText.qml b/components/IText.qml
index 31e0423..b6a01b0 100644
--- a/components/IText.qml
+++ b/components/IText.qml
@@ -11,7 +11,7 @@ Text {
property real animateFrom: 0
property real animateTo: 1
- // renderType: Text.NativeRendering
+ renderType: Text.NativeRendering // or Text.CurveRenderer
textFormat: Text.PlainText
elide: Text.ElideRight
color: Colors.foreground1
diff --git a/components/IWindow.qml b/components/IWindow.qml
index 73302fa..2276c8d 100644
--- a/components/IWindow.qml
+++ b/components/IWindow.qml
@@ -1,5 +1,6 @@
import Quickshell
import Quickshell.Wayland
+import QtQuick
PanelWindow {
required property string name