Fix displaying issues of plasmoid

* Set a certain size for the icons to avoid them from being too big or too
  small
* Fix search button
This commit is contained in:
Martchus 2021-11-13 22:51:04 +01:00
parent 3d2930cb1d
commit 811c07da6a
1 changed files with 12 additions and 3 deletions

View File

@ -181,6 +181,8 @@ ColumnLayout {
RowLayout {
id: toolBar
Layout.fillWidth: true
Layout.minimumHeight: units.iconSizes.medium
Layout.maximumHeight: units.iconSizes.medium
ToolButton {
id: connectButton
@ -552,11 +554,15 @@ ColumnLayout {
Item {
Layout.fillHeight: true
}
TinyButton {
ToolButton {
id: searchButton
icon.name: "search"
Layout.fillWidth: false
Layout.fillHeight: false
Layout.minimumWidth: units.iconSizes.smallMedium
Layout.minimumHeight: units.iconSizes.smallMedium
Layout.alignment: Qt.AlignBottom | Qt.AlignHCenter
icon.source: "image://fa/search"
enabled: mainTabGroup.currentTab === dirsPage
tooltip: qsTr("Toggle filter")
onClicked: {
var filter = findCurrentFilter()
if (!filter) {
@ -570,6 +576,9 @@ ColumnLayout {
filter.text = ""
}
}
PlasmaComponents3.ToolTip {
text: qsTr("Toggle filter")
}
}
}