mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:59:02 +08: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
@ -47,6 +47,8 @@ Item
|
||||
Cura.SearchBar
|
||||
{
|
||||
id: searchBar
|
||||
Layout.fillWidth: true
|
||||
implicitHeight: createNewProjectButton.height
|
||||
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" }
|
||||
|
||||
Layout.fillWidth: true
|
||||
implicitHeight: createNewProjectButton.height
|
||||
leftPadding: searchIcon.width + UM.Theme.getSize("default_margin").width * 2
|
||||
|
||||
placeholderText: catalog.i18nc("@placeholder", "Search")
|
||||
@ -28,7 +26,7 @@ Cura.TextField
|
||||
left: parent.left
|
||||
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
|
||||
width: height
|
||||
color: UM.Theme.getColor("text")
|
||||
|
Loading…
x
Reference in New Issue
Block a user