Skip to content

Commit 95a8aaf

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 d3ad2a9 commit 95a8aaf

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
@@ -44,7 +44,6 @@ FocusScope {
4444

4545
MaterialToolButton {
4646
text: MaterialIcons.search
47-
enabled: root.toggle
4847

4948
onClicked: {
5049
isVisible = !root.isVisible
@@ -82,6 +81,7 @@ FocusScope {
8281

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

8787
// Style

meshroom/ui/qml/Viewer3D/Inspector3D.qml

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

319319
SearchBar {
320320
id: searchBar
321-
322-
toggle: true // enable toggling the actual text field by the search button
323-
Layout.minimumWidth: searchBar.width
324-
maxWidth: parent.width
325-
321+
Layout.minimumWidth: 150
322+
Layout.fillWidth: true
323+
Layout.rightMargin: 10
324+
Layout.leftMargin: 10
326325
}
327326

328327
ListView {

0 commit comments

Comments
 (0)