Skip to content

Commit 6199de0

Browse files
committed
[ui] Inspector3D: improve pointSize/cameraScale sliders
* reduce pointSize maximum value for better precision * replace texts by icon * add tooltips with values
1 parent a9cb4af commit 6199de0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

meshroom/ui/qml/Viewer3D/Inspector3D.qml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@ FloatingPane {
4040
columnSpacing: 6
4141
rowSpacing: 3
4242

43-
Label { text: "Points"; padding: 2 }
43+
MaterialLabel { font.family: MaterialIcons.fontFamily; text: MaterialIcons.grain; padding: 2 }
4444
RowLayout {
4545
Slider {
46-
Layout.fillWidth: true; from: 0; to: 10; stepSize: 0.1
46+
Layout.fillWidth: true; from: 0; to: 5; stepSize: 0.1
4747
value: Viewer3DSettings.pointSize
4848
onValueChanged: Viewer3DSettings.pointSize = value
49+
ToolTip.text: "Point Size: " + value.toFixed(2)
50+
ToolTip.visible: hovered || pressed
51+
ToolTip.delay: 150
4952
}
5053
MaterialToolButton {
5154
text: MaterialIcons.center_focus_strong
@@ -57,7 +60,7 @@ FloatingPane {
5760
}
5861

5962
}
60-
Label { text: "Cameras"; padding: 2 }
63+
MaterialLabel { font.family: MaterialIcons.fontFamily; text: MaterialIcons.videocam; padding: 2 }
6164
Slider {
6265
value: Viewer3DSettings.cameraScale
6366
from: 0
@@ -66,6 +69,9 @@ FloatingPane {
6669
Layout.fillWidth: true
6770
padding: 0
6871
onMoved: Viewer3DSettings.cameraScale = value
72+
ToolTip.text: "Camera Scale: " + value.toFixed(2)
73+
ToolTip.visible: hovered || pressed
74+
ToolTip.delay: 150
6975
}
7076
Flow {
7177
Layout.columnSpan: 2

0 commit comments

Comments
 (0)