Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

integrate asset search in top toolbar

parent dc8c3c0b
......@@ -108,6 +108,21 @@ Rectangle {
Layout.fillWidth: true
color: "transparent"
}
ToolButton {
id: searchList
implicitWidth: 40
implicitHeight: 40
iconName: "edit-find"
checkable: true
tooltip: isEffectList ? i18n('Find effect') : i18n('Find composition')
onCheckedChanged: {
searchInput.visible = searchList.checked
searchInput.focus = searchList.checked
if (!searchList.checked) {
searchInput.text = ''
}
}
}
ToolButton {
id: showDescription
implicitWidth: 40
......@@ -127,14 +142,17 @@ Rectangle {
TextField {
id: searchInput
Layout.fillWidth:true
visible: false
Image {
id: clear
source: 'image://icon/edit-clear'
width: parent.height * 0.8
height: width
anchors { right: parent.right; rightMargin: 8; verticalCenter: parent.verticalCenter }
opacity: 0
MouseArea {
anchors.fill: parent
onClicked: { searchInput.text = ''; searchInput.focus = true; }
onClicked: { searchInput.text = ''; searchInput.focus = true; searchList.checked = false; }
}
}
states: State {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment