2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Material 2.0
|
2022-05-05 13:02:54 +02:00
|
|
|
import ScreenPlayApp
|
|
|
|
import ScreenPlay
|
2022-04-23 14:32:36 +02:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
width: 300
|
|
|
|
|
|
|
|
ToolButton {
|
|
|
|
id: icnSearch
|
|
|
|
|
2022-04-30 13:22:17 +02:00
|
|
|
icon.source: "qrc:/qml/ScreenPlayApp/assets/icons/icon_search.svg"
|
2022-04-23 14:32:36 +02:00
|
|
|
height: 30
|
|
|
|
width: 30
|
|
|
|
icon.width: 30
|
|
|
|
icon.height: 30
|
|
|
|
icon.color: Material.iconColor
|
|
|
|
|
|
|
|
anchors {
|
|
|
|
right: parent.right
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
id: txtSearch
|
|
|
|
placeholderTextColor: Material.secondaryTextColor
|
|
|
|
width: 250
|
|
|
|
height: 40
|
|
|
|
color: Material.secondaryTextColor
|
|
|
|
placeholderText: qsTr("Search for Wallpaper & Widgets")
|
|
|
|
onTextChanged: {
|
|
|
|
if (txtSearch.text.length === 0)
|
2022-04-30 12:07:54 +02:00
|
|
|
App.installedListFilter.resetFilter();
|
2022-04-23 14:32:36 +02:00
|
|
|
else
|
2022-04-30 12:07:54 +02:00
|
|
|
App.installedListFilter.sortByName(txtSearch.text);
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
anchors {
|
|
|
|
right: icnSearch.left
|
|
|
|
rightMargin: 10
|
|
|
|
top: parent.top
|
|
|
|
topMargin: 10
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|