diff options
author | Konstantinos Karmas <konskarm@gmail.com> | 2021-08-06 10:47:47 +0300 |
---|---|---|
committer | Konstantinos Karmas <konskarm@gmail.com> | 2021-08-06 10:47:47 +0300 |
commit | 22e407207f69839452e3dc2201ef7da466db7148 (patch) | |
tree | 0e61a8815548e435663a759da0a2b50e494783b5 /plugins/DigitalLibrary/resources | |
parent | b78651e45f9a123c8b345420fbc0d859eb176067 (diff) |
Manually add the magnifier icon in the search bar in DL
The `leftIcon` property, which is not available in 4.9 and 4.10, so the DigitalLibrary window wasn't getting drawn. To keep having the icon, I manually added the RecolorImage in the search textfield.
CURA-8444
Diffstat (limited to 'plugins/DigitalLibrary/resources')
-rw-r--r-- | plugins/DigitalLibrary/resources/qml/SelectProjectPage.qml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/plugins/DigitalLibrary/resources/qml/SelectProjectPage.qml b/plugins/DigitalLibrary/resources/qml/SelectProjectPage.qml index 8b919e299d..ffa34feb45 100644 --- a/plugins/DigitalLibrary/resources/qml/SelectProjectPage.qml +++ b/plugins/DigitalLibrary/resources/qml/SelectProjectPage.qml @@ -49,11 +49,27 @@ Item id: searchBar Layout.fillWidth: true implicitHeight: createNewProjectButton.height + leftPadding: searchIcon.width + UM.Theme.getSize("default_margin").width * 2 onTextEdited: manager.projectFilter = text //Update the search filter when editing this text field. - leftIcon: UM.Theme.getIcon("Magnifier") placeholderText: "Search" + + UM.RecolorImage + { + id: searchIcon + + anchors + { + verticalCenter: parent.verticalCenter + left: parent.left + leftMargin: UM.Theme.getSize("default_margin").width + } + source: UM.Theme.getIcon("Magnifier") + height: UM.Theme.getSize("small_button_icon").height + width: height + color: UM.Theme.getColor("text") + } } Cura.SecondaryButton |