Skip to content

Commit

Permalink
Merge pull request #2606 from alicevision/fix/uiFixes
Browse files Browse the repository at this point in the history
[ui] Minor UI stabilization fixes for Qt 6
  • Loading branch information
fabiencastan authored Nov 25, 2024
2 parents b5dda4e + fdcf35c commit 648b095
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 18 deletions.
21 changes: 12 additions & 9 deletions meshroom/ui/qml/Controls/ExpandableGroup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,24 @@ GroupBox {
topPadding: label.height + padding
background: Item {}

MouseArea {
parent: paneLabel
anchors.fill: parent
onClicked: function(mouse) {
expandButton.checked = !expandButton.checked
}
}

label: Pane {
id: paneLabel
padding: 2
width: root.width

background: Rectangle {
id: labelBg
color: palette.base
opacity: 0.8

MouseArea {
anchors.fill: parent
onClicked: {
expandButton.checked = !expandButton.checked
}
}
}
padding: 2
width: root.width

RowLayout {
width: parent.width
Expand Down
2 changes: 1 addition & 1 deletion meshroom/ui/qml/GraphEditor/Edge.qml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Item {
iconText: MaterialIcons.loop
label: (root.iteration + 1) + "/" + root.loopSize + " "

color: palette.base
labelIconColor: palette.base
ToolTip.text: "Foreach Loop"
}

Expand Down
12 changes: 9 additions & 3 deletions meshroom/ui/qml/Homepage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,15 @@ Page {
}

MaterialToolLabelButton {
Layout.topMargin: 10
Layout.bottomMargin: 10
Layout.fillWidth: true
labelItem.horizontalAlignment: Text.AlignHCenter
label: MaterialIcons.favorite + " Support AliceVision"
Layout.alignment: Qt.AlignHCenter
label: "Support AliceVision"
iconText: MaterialIcons.favorite

// Slightly "extend" the clickable area for the button while preserving the centered layout
iconItem.leftPadding: 15
labelItem.rightPadding: 15

onClicked: Qt.openUrlExternally("https://alicevision.org/association/#donate")
}
Expand Down Expand Up @@ -347,6 +352,7 @@ Page {
ToolTip.visible: hovered
ToolTip.text: modelData["path"] ? modelData["path"] : "Open browser to select a project file"

font.family: MaterialIcons.fontFamily
font.pointSize: 24

text: modelData["path"] ? (modelData["thumbnail"] ? "" : MaterialIcons.description) : MaterialIcons.folder_open
Expand Down
6 changes: 3 additions & 3 deletions meshroom/ui/qml/MaterialIcons/MaterialToolLabel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Item {
property alias iconText: iconItem.text
property alias iconSize: iconItem.font.pointSize
property alias label: labelItem.text
property var color: palette.text
property var labelIconColor: palette.text
implicitWidth: childrenRect.width
implicitHeight: childrenRect.height
anchors.rightMargin: 5
Expand All @@ -24,12 +24,12 @@ Item {
font.pointSize: 13
padding: 0
text: ""
color: color
color: labelIconColor
}
Label {
id: labelItem
text: ""
color: color
color: labelIconColor
}
}

Expand Down
2 changes: 2 additions & 0 deletions meshroom/ui/qml/Viewer/SfmGlobalStats.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import QtQuick.Layouts

import AliceVision 1.0 as AliceVision
import Charts 1.0
import Controls 1.0
import Utils 1.0

FloatingPane {
id: root
Expand Down
2 changes: 2 additions & 0 deletions meshroom/ui/qml/Viewer/SfmStatsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import QtQuick.Layouts

import AliceVision 1.0 as AliceVision
import Charts 1.0
import Controls 1.0
import Utils 1.0


FloatingPane {
Expand Down
5 changes: 4 additions & 1 deletion meshroom/ui/qml/Viewer3D/Inspector3D.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material 2.12
import QtQuick.Layouts
import Qt3D.Core 2.6
import Qt3D.Render 2.6
Expand Down Expand Up @@ -229,6 +228,7 @@ FloatingPane {

Label {
text: resectionIdSlider.value + "/" + Viewer3DSettings.resectionIdCount
color: palette.text
visible: Viewer3DSettings.displayResectionIds
}
}
Expand All @@ -252,6 +252,7 @@ FloatingPane {
return 0

}
labelIconColor: palette.text
ToolTip.text: "Number Of Cameras In Current Resection Group"
visible: Viewer3DSettings.displayResectionIds
}
Expand All @@ -269,6 +270,7 @@ FloatingPane {

return currentCameras
}
labelIconColor: palette.text
ToolTip.text: "Number Of Cumulated Cameras"
visible: Viewer3DSettings.displayResectionIds
}
Expand All @@ -285,6 +287,7 @@ FloatingPane {

return totalCameras
}
labelIconColor: palette.text
ToolTip.text: "Total Number Of Cameras"
visible: Viewer3DSettings.displayResectionIds
}
Expand Down
2 changes: 1 addition & 1 deletion meshroom/ui/qml/WorkspaceView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Item {
Inspector3D {
id: inspector3d
SplitView.preferredWidth: 220
SplitView.minimumWidth: 10
SplitView.minimumWidth: 100

mediaLibrary: c_viewer3D.library
camera: c_viewer3D.mainCamera
Expand Down

0 comments on commit 648b095

Please sign in to comment.