From e053bb0f45f14fd6330d9328871ca6039365ca7b Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Tue, 14 Nov 2017 18:15:45 +0100 Subject: [PATCH] [ui] minor UI tweaks --- meshroom/ui/qml/AttributeEditor.qml | 3 ++- meshroom/ui/qml/GraphEditor.qml | 1 - meshroom/ui/qml/Node.qml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/meshroom/ui/qml/AttributeEditor.qml b/meshroom/ui/qml/AttributeEditor.qml index c8fb8f95..0e2843c2 100644 --- a/meshroom/ui/qml/AttributeEditor.qml +++ b/meshroom/ui/qml/AttributeEditor.qml @@ -27,7 +27,7 @@ ColumnLayout { Layout.fillWidth: true clip: true spacing: 4 - ScrollBar.vertical: ScrollBar {} + ScrollBar.vertical: ScrollBar { id: scrollBar } model: node ? node.attributes : undefined @@ -52,6 +52,7 @@ ColumnLayout { AttributeItemDelegate { Layout.fillWidth: true + Layout.rightMargin: scrollBar.width height: childrenRect.height attribute: object } diff --git a/meshroom/ui/qml/GraphEditor.qml b/meshroom/ui/qml/GraphEditor.qml index 5e3840c8..495aeab0 100755 --- a/meshroom/ui/qml/GraphEditor.qml +++ b/meshroom/ui/qml/GraphEditor.qml @@ -102,7 +102,6 @@ Item { node: object width: root.nodeWidth height: Math.max(root.nodeHeight, implicitHeight) - radius: 1 border.color: root.selectedNode == node ? Qt.darker(color, 1.8) : Qt.darker(color, 1.1) onAttributePinCreated: registerAttributePin(attribute, pin) diff --git a/meshroom/ui/qml/Node.qml b/meshroom/ui/qml/Node.qml index 1be9a32f..a15e4500 100755 --- a/meshroom/ui/qml/Node.qml +++ b/meshroom/ui/qml/Node.qml @@ -14,7 +14,7 @@ Rectangle { color: baseColor opacity: 0.9 - + radius: 2 MouseArea { anchors.fill: parent drag.target: parent @@ -69,7 +69,8 @@ Rectangle { ListView { id: chunksListView anchors.fill: parent - anchors.margins: 1 + anchors.topMargin: 1 + anchors.bottomMargin: 1 interactive: false orientation: Qt.Horizontal