mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 07:35:11 +08:00
Merge pull request #10871 from Ultimaker/CURA-8559_mp_searchbar_fixes
[CURA-8559] (New-)Marketplace Search-Bar UX Fixes
This commit is contained in:
commit
0fb78126d5
@ -85,6 +85,7 @@ Window
|
|||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
|
color: "transparent"
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
Layout.preferredWidth: searchBar.visible ? UM.Theme.getSize("thin_margin").width : 0
|
Layout.preferredWidth: searchBar.visible ? UM.Theme.getSize("thin_margin").width : 0
|
||||||
Layout.fillWidth: ! searchBar.visible
|
Layout.fillWidth: ! searchBar.visible
|
||||||
@ -93,7 +94,7 @@ Window
|
|||||||
Cura.SearchBar
|
Cura.SearchBar
|
||||||
{
|
{
|
||||||
id: searchBar
|
id: searchBar
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: UM.Theme.getSize("button_icon").height
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onTextEdited: searchStringChanged(text)
|
onTextEdited: searchStringChanged(text)
|
||||||
}
|
}
|
||||||
@ -105,6 +106,7 @@ Window
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
height: UM.Theme.getSize("button_icon").height
|
height: UM.Theme.getSize("button_icon").height
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
background: Rectangle { color: "transparent" }
|
||||||
|
|
||||||
PackageTypeTab
|
PackageTypeTab
|
||||||
{
|
{
|
||||||
|
@ -147,7 +147,7 @@ ListView
|
|||||||
PropertyChanges
|
PropertyChanges
|
||||||
{
|
{
|
||||||
target: loadMoreLabel
|
target: loadMoreLabel
|
||||||
text: catalog.i18nc("@button", "No more results to load")
|
text: packages.model.count > 0 ? catalog.i18nc("@message", "No more results to load") : catalog.i18nc("@message", "No results found with current filter")
|
||||||
color: UM.Theme.getColor("action_button_disabled_text")
|
color: UM.Theme.getColor("action_button_disabled_text")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user