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:
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user