Browse Source

Fix: Actually make SearchBar-component independant.

It still depended on the Digital Library 'parent'.

part of CURA-8559
Remco Burema 3 years ago
parent
commit
b5d58f78d7

+ 2 - 0
plugins/DigitalLibrary/resources/qml/SelectProjectPage.qml

@@ -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.
         }
 

+ 1 - 3
resources/qml/SearchBar.qml

@@ -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")