2023-04-18 16:05:24 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
StatusInput {
|
2023-09-12 14:26:38 +00:00
|
|
|
property bool showTopBorder: false
|
2024-02-20 07:43:31 +00:00
|
|
|
property bool showBottomBorder: true
|
2023-09-12 14:26:38 +00:00
|
|
|
|
2023-04-18 16:05:24 +00:00
|
|
|
placeholderText: qsTr("Search")
|
|
|
|
input.implicitHeight: 56
|
|
|
|
input.background.color: Theme.palette.indirectColor1
|
|
|
|
input.background.border.width: 0
|
|
|
|
input.rightComponent: StatusFlatRoundButton {
|
|
|
|
icon.name: "search"
|
|
|
|
type: StatusFlatRoundButton.Type.Secondary
|
|
|
|
enabled: false
|
|
|
|
}
|
2023-09-12 14:26:38 +00:00
|
|
|
Rectangle {
|
|
|
|
visible: showTopBorder
|
|
|
|
anchors.top: parent.top
|
|
|
|
height: 1
|
|
|
|
width: parent.width
|
|
|
|
color: Theme.palette.baseColor2
|
|
|
|
}
|
2023-04-18 16:05:24 +00:00
|
|
|
Rectangle {
|
2024-02-20 07:43:31 +00:00
|
|
|
visible: showBottomBorder
|
2023-04-18 16:05:24 +00:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
height: 1
|
|
|
|
width: parent.width
|
|
|
|
color: Theme.palette.baseColor2
|
|
|
|
}
|
|
|
|
}
|