1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

styledrect in widgets

This commit is contained in:
bbedward
2025-07-24 21:07:46 -04:00
parent 14a9828296
commit 1197b9385c
2 changed files with 4 additions and 8 deletions

View File

@@ -129,7 +129,6 @@ Item {
} }
// Search input field
Item { Item {
id: searchInputField id: searchInputField
@@ -174,7 +173,6 @@ Item {
} }
} }
// Status icon overlay
DankIcon { DankIcon {
name: { name: {
if (root.isLoading) if (root.isLoading)
@@ -218,8 +216,7 @@ Item {
} }
// Search results dropdown StyledRect {
Rectangle {
id: searchDropdown id: searchDropdown
property bool hovered: false property bool hovered: false
@@ -261,7 +258,7 @@ Item {
model: searchResultsModel model: searchResultsModel
spacing: 2 spacing: 2
delegate: Rectangle { delegate: StyledRect {
width: searchResultsList.width width: searchResultsList.width
height: 36 height: 36
radius: Theme.cornerRadius radius: Theme.cornerRadius
@@ -312,7 +309,6 @@ Item {
} }
// Show message when no results
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
text: root.isLoading ? "Searching..." : "No locations found" text: root.isLoading ? "Searching..." : "No locations found"

View File

@@ -3,7 +3,7 @@ import QtQuick.Controls
import qs.Common import qs.Common
import qs.Widgets import qs.Widgets
Rectangle { StyledRect {
id: root id: root
property alias text: textInput.text property alias text: textInput.text
@@ -154,7 +154,7 @@ Rectangle {
} }
// Clear button // Clear button
Rectangle { StyledRect {
id: clearButton id: clearButton
width: 24 width: 24