mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Fix: Actually make SearchBar-component independant.
It still depended on the Digital Library 'parent'. part of CURA-8559
This commit is contained in:
parent
977a12c989
commit
b5d58f78d7
2 changed files with 3 additions and 3 deletions
|
@ -47,6 +47,8 @@ Item
|
||||||
Cura.SearchBar
|
Cura.SearchBar
|
||||||
{
|
{
|
||||||
id: searchBar
|
id: searchBar
|
||||||
|
Layout.fillWidth: true
|
||||||
|
implicitHeight: createNewProjectButton.height
|
||||||
onTextEdited: manager.projectFilter = text //Update the search filter when editing this text field.
|
onTextEdited: manager.projectFilter = text //Update the search filter when editing this text field.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ Cura.TextField
|
||||||
{
|
{
|
||||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
UM.I18nCatalog { id: catalog; name: "cura" }
|
||||||
|
|
||||||
Layout.fillWidth: true
|
|
||||||
implicitHeight: createNewProjectButton.height
|
|
||||||
leftPadding: searchIcon.width + UM.Theme.getSize("default_margin").width * 2
|
leftPadding: searchIcon.width + UM.Theme.getSize("default_margin").width * 2
|
||||||
|
|
||||||
placeholderText: catalog.i18nc("@placeholder", "Search")
|
placeholderText: catalog.i18nc("@placeholder", "Search")
|
||||||
|
@ -28,7 +26,7 @@ Cura.TextField
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width
|
leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
source: UM.Theme.getIcon("search")
|
source: UM.Theme.getIcon("Magnifier")
|
||||||
height: UM.Theme.getSize("small_button_icon").height
|
height: UM.Theme.getSize("small_button_icon").height
|
||||||
width: height
|
width: height
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue