diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-05 17:25:30 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-05 17:25:30 +0800 |
| commit | f9efa56caeeb5289d6b2314e50041a1b7055a3c8 (patch) | |
| tree | 8a9e5b59f8690555ba8ad51f653db02d9483e2a7 /config | |
| parent | f6b5ac3cfba03602fea9d8c30b13075514dbd131 (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 'config')
| -rw-r--r-- | config/Bar.qml | 2 | ||||
| -rw-r--r-- | config/Colors.qml | 1 | ||||
| -rw-r--r-- | config/General.qml | 6 | ||||
| -rw-r--r-- | config/Launcher.qml | 44 | ||||
| -rw-r--r-- | config/Style.qml | 4 |
5 files changed, 52 insertions, 5 deletions
diff --git a/config/Bar.qml b/config/Bar.qml index b460604..2ae9ab7 100644 --- a/config/Bar.qml +++ b/config/Bar.qml @@ -32,8 +32,6 @@ Singleton { readonly property int wsAnimationDuration: 200 readonly property int wsExtraMouseArea: wsHorizontalSpacing / 2 - readonly property int appIconSize: 25 - readonly property int resourceIconTextSpacing: Style.spacing.small readonly property int moduleRadius: Style.rounding.small diff --git a/config/Colors.qml b/config/Colors.qml index 6b510f7..259ec73 100644 --- a/config/Colors.qml +++ b/config/Colors.qml @@ -22,6 +22,7 @@ Singleton { readonly property color foreground1: WallustColors.foreground readonly property color foreground2: WallustColors.color15 readonly property color foreground3: WallustColors.color7 + readonly property color cursor: WallustColors.cursor readonly property color accent: background2 readonly property color accentAlt: background1 diff --git a/config/General.qml b/config/General.qml index 2df675b..75f0e5b 100644 --- a/config/General.qml +++ b/config/General.qml @@ -5,8 +5,6 @@ import Quickshell Singleton { id: root - readonly property bool sloopySearch: false - readonly property int resourceUpdateInterval: 1 readonly property real iconSize: Style.font.size.larger ?? 16 @@ -15,6 +13,10 @@ Singleton { readonly property int rectMargin: Style.spacing.small + readonly property int appIconSize: 25 + + readonly property int appSearchFuzzySearchThreshold: 5 + readonly property int fontSize: Style.font.size.larger readonly property int animationDuration: Style.anim.durations.normal diff --git a/config/Launcher.qml b/config/Launcher.qml new file mode 100644 index 0000000..ca0748d --- /dev/null +++ b/config/Launcher.qml @@ -0,0 +1,44 @@ +pragma Singleton + +import Quickshell +import QtQuick +import qs.launcher.components + +Singleton { + id: root + + readonly property int defaultWidth: 500 + + readonly property int widgetWidth: 700 + readonly property int widgetHeight: 200 + + readonly property int innerMargin: 5 + + readonly property int borderRadius: Style.rounding.large + readonly property int borderWidth: 1 + + readonly property int widgetRadius: Style.rounding.small + readonly property int widgetFontSize: Style.font.size.large + + readonly property double bgTransparency: 0.4 + readonly property double widgetBgTransparency: 0.3 + readonly property double widgetTitleBgTransparency: 0.2 // as it's on top of it + + readonly property bool showWidgetTitle: true + + readonly property int topMargin: 400 + + readonly property int predictiveCompletionRadius: 6 + + readonly property list<Component> widgets: [ + Component { + Spell {} + }, + Component { + App {} + }, + Component { + Calc {} + } + ] +} diff --git a/config/Style.qml b/config/Style.qml index e2c47a0..c6b82a6 100644 --- a/config/Style.qml +++ b/config/Style.qml @@ -25,6 +25,7 @@ Singleton { readonly property int smaller: 10 readonly property int normal: 12 readonly property int larger: 15 + readonly property int largerr: 17 readonly property int large: 20 } @@ -37,6 +38,7 @@ Singleton { } component FontFamily: QtObject { + readonly property string sans: "SF Compact" readonly property string symbols: "Symbols Nerd Font Mono" readonly property string iosevka: "Iosevka Nerd Font" readonly property string mono: "JetBrains Mono" @@ -47,7 +49,7 @@ Singleton { readonly property int smaller: 12 readonly property int normal: 13 readonly property int larger: 15 - readonly property int largerr: 16 + readonly property int largerr: 17 readonly property int large: 18 readonly property int extraLarge: 28 } |
