mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-28 18:56:32 +02:00
Merge pull request #3520
0775b52
History: clean search bar inline button (rating89us)
This commit is contained in:
commit
0a6f6cb9ac
@ -154,10 +154,10 @@ Rectangle {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
input.topPadding: 6
|
input.topPadding: 6
|
||||||
input.bottomPadding: 6
|
input.bottomPadding: 6
|
||||||
fontSize: 16
|
fontSize: 15
|
||||||
labelFontSize: 14
|
labelFontSize: 14
|
||||||
placeholderText: qsTr("Search by Transaction ID, Address, Description, Amount or Blockheight") + translationManager.emptyString
|
placeholderText: qsTr("Search by Transaction ID, Address, Description, Amount or Blockheight") + translationManager.emptyString
|
||||||
placeholderFontSize: 16
|
placeholderFontSize: 15
|
||||||
inputHeight: 34
|
inputHeight: 34
|
||||||
onTextUpdated: {
|
onTextUpdated: {
|
||||||
if(searchInput.text != null && searchInput.text.length >= 3){
|
if(searchInput.text != null && searchInput.text.length >= 3){
|
||||||
@ -170,6 +170,21 @@ Rectangle {
|
|||||||
root.updateFilter();
|
root.updateFilter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MoneroComponents.InlineButton {
|
||||||
|
Layout.topMargin: -8
|
||||||
|
Layout.rightMargin: -8
|
||||||
|
Layout.leftMargin: -2
|
||||||
|
buttonColor: "transparent"
|
||||||
|
fontFamily: FontAwesome.fontFamilySolid
|
||||||
|
fontStyleName: "Solid"
|
||||||
|
fontPixelSize: 18
|
||||||
|
text: FontAwesome.times
|
||||||
|
tooltip: qsTr("Clean") + translationManager.emptyString
|
||||||
|
tooltipLeft: true
|
||||||
|
visible: searchInput.text != ""
|
||||||
|
onClicked: searchInput.text = ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user