From 1ee78be8453f86ef366fe7a73e4e8cf245d2d336 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Sat, 11 Jul 2026 04:31:59 -0400 Subject: Added qs-hyprview as alternative overview Signed-off-by: Don Williams 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 --- .../quickshell/qs-hyprview/modules/SearchBox.qml | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 config/quickshell/qs-hyprview/modules/SearchBox.qml (limited to 'config/quickshell/qs-hyprview/modules/SearchBox.qml') 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 + } + } +} -- cgit v1.2.3