diff options
| author | Don Williams <Don.e.williams@gmail.com> | 2026-07-11 04:31:59 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:40:34 -0700 |
| commit | 1ee78be8453f86ef366fe7a73e4e8cf245d2d336 (patch) | |
| tree | 72fbbfa17e61299f3eb400b6fd5a27ec52f9b291 /config/quickshell/qs-hyprview/modules/SearchBox.qml | |
| parent | 4d39fc9670d5cb0b3e0624ead386d30db3b8110f (diff) | |
Added qs-hyprview as alternative overview
Signed-off-by: Don Williams <Don.e.williams@gmail.com>
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
deleted: ./
new file: LICENSE
new file: README.md
new file: common/Appearance.qml
new file: layouts/BandsLayout.qml
new file: layouts/ColumnarLayout.qml
new file: layouts/HeroLayout.qml
new file: layouts/JustifiedLayout.qml
new file: layouts/LayoutsManager.qml
new file: layouts/MasonryLayout.qml
new file: layouts/SatelliteLayout.qml
new file: layouts/SmartGridLayout.qml
new file: layouts/SpiralLayout.qml
new file: layouts/StarggeredLayout.qml
new file: layouts/VortexLayout.qml
new file: layouts/qmldir
new file: modules/Hyprview.qml
new file: modules/SearchBox.qml
new file: modules/WindowThumbnail.qml
new file: modules/qmldir
new file: qs-hyprview-template.qml
new file: screenshots/bands.jpeg
new file: screenshots/hero.jpeg
new file: screenshots/masonry.jpeg
new file: screenshots/satellite.jpeg
new file: screenshots/smartgrid.jpeg
new file: screenshots/spiral.jpeg
new file: screenshots/staggered.jpeg
new file: screenshots/vortex.jpeg
new file: shell.qml
Diffstat (limited to 'config/quickshell/qs-hyprview/modules/SearchBox.qml')
| -rw-r--r-- | config/quickshell/qs-hyprview/modules/SearchBox.qml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/config/quickshell/qs-hyprview/modules/SearchBox.qml b/config/quickshell/qs-hyprview/modules/SearchBox.qml new file mode 100644 index 00000000..42971bd1 --- /dev/null +++ b/config/quickshell/qs-hyprview/modules/SearchBox.qml @@ -0,0 +1,53 @@ +import QtQuick +import Quickshell + +Rectangle { + id: searchBar + width: Math.min(parent.width * 0.6, 480) + height: 40 + radius: 20 + color: "#66000000" + border.width: 1 + border.color: m3.m3Primary + anchors.horizontalCenter: parent.horizontalCenter + + property var onTextChanged: null + + function reset() { + searchInput.text = "" + } + + function focusInput() { + searchInput.forceActiveFocus(Qt.ActiveWindowFocusReason) + } + + function releaseInputFocus() { + searchInput.focus = false + } + + TextInput { + id: searchInput + anchors.fill: parent + anchors.leftMargin: 16 + anchors.rightMargin: 16 + verticalAlignment: TextInput.AlignVCenter + color: "white" + font.pixelSize: 16 + activeFocusOnTab: false + selectByMouse: true + focus: false + + onTextChanged: { + searchBar.onTextChanged(text) + } + + Text { + anchors.fill: parent + verticalAlignment: Text.AlignVCenter + color: "#88ffffff" + font.pixelSize: 14 + text: "Type to filter windows..." + visible: !searchInput.text || searchInput.text.length === 0 + } + } +} |
