Skip to content

Commit 1a0d2cf

Browse files
committed
[ui] SearchBar: Clear text on searchbar has a bit more margin towards the right so as to not overlap with the bounds
Inspector3D gets non-toggle searchbar
1 parent 1c23c5e commit 1a0d2cf

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

meshroom/ui/qml/Controls/SearchBar.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ FocusScope {
4343

4444
MaterialToolButton {
4545
text: MaterialIcons.search
46-
enabled: root.toggle
4746

4847
onClicked: {
4948
isVisible = !root.isVisible
@@ -81,6 +80,7 @@ FocusScope {
8180

8281
// Anchors
8382
anchors.right: parent.right
83+
anchors.rightMargin: 2 // Leave a tiny bit of space so that its highlight does not overlap with the boundary of the parent
8484
anchors.verticalCenter: parent.verticalCenter
8585

8686
// Style

meshroom/ui/qml/Viewer3D/Inspector3D.qml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,10 @@ FloatingPane {
298298

299299
SearchBar {
300300
id: searchBar
301-
302-
toggle: true // enable toggling the actual text field by the search button
303-
Layout.minimumWidth: searchBar.width
304-
maxWidth: parent.width
305-
301+
Layout.minimumWidth: 150
302+
Layout.fillWidth: true
303+
Layout.rightMargin: 10
304+
Layout.leftMargin: 10
306305
}
307306

308307
ListView {

0 commit comments

Comments
 (0)