From 1b963ab1f2864b30a9850231c7164ab90622afc1 Mon Sep 17 00:00:00 2001 From: waaake Date: Fri, 10 Jan 2025 07:44:45 +0100 Subject: [PATCH] [ui] ScriptEditor: Adjusted Icon Size and Layout --- meshroom/ui/qml/GraphEditor/ScriptEditor.qml | 68 ++++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/meshroom/ui/qml/GraphEditor/ScriptEditor.qml b/meshroom/ui/qml/GraphEditor/ScriptEditor.qml index e00df208..fc0f0c36 100644 --- a/meshroom/ui/qml/GraphEditor/ScriptEditor.qml +++ b/meshroom/ui/qml/GraphEditor/ScriptEditor.qml @@ -143,7 +143,7 @@ Item { Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter MaterialToolButton { - font.pointSize: 18 + font.pointSize: 13 text: MaterialIcons.file_open ToolTip.text: "Load Script" @@ -153,7 +153,7 @@ Item { } MaterialToolButton { - font.pointSize: 18 + font.pointSize: 13 text: MaterialIcons.save ToolTip.text: "Save Script" @@ -162,40 +162,13 @@ Item { } } - Item { - width: executeButton.width - } - MaterialToolButton { - id: executeButton - font.pointSize: 18 - text: MaterialIcons.play_arrow - ToolTip.text: "Execute Script" - - onClicked: { - root.processScript() - } - } - - MaterialToolButton { - font.pointSize: 18 - text: MaterialIcons.backspace - ToolTip.text: "Clear Output Window" - - onClicked: { - output.clear() - } - } - - Item { - width: executeButton.width - } - - MaterialToolButton { - font.pointSize: 18 + font.pointSize: 13 text: MaterialIcons.history ToolTip.text: "Get Previous Script" + enabled: ScriptEditorManager.hasPreviousScript; + onClicked: { var ret = ScriptEditorManager.getPreviousScript() @@ -207,10 +180,12 @@ Item { } MaterialToolButton { - font.pointSize: 18 + font.pointSize: 13 text: MaterialIcons.update ToolTip.text: "Get Next Script" + enabled: ScriptEditorManager.hasNextScript; + onClicked: { var ret = ScriptEditorManager.getNextScript() @@ -222,7 +197,7 @@ Item { } MaterialToolButton { - font.pointSize: 18 + font.pointSize: 13 text: MaterialIcons.delete_sweep ToolTip.text: "Clear History" @@ -234,9 +209,34 @@ Item { } } + Item { + width: executeButton.width; + } + + MaterialToolButton { + id: executeButton + font.pointSize: 13 + text: MaterialIcons.play_arrow + ToolTip.text: "Execute Script" + + onClicked: { + root.processScript() + } + } + Item { Layout.fillWidth: true } + + MaterialToolButton { + font.pointSize: 13 + text: MaterialIcons.backspace + ToolTip.text: "Clear Output Window" + + onClicked: { + output.clear() + } + } } RowLayout {