Skip to content

Commit

Permalink
[ui] ScriptEditor: Updated the content width of the input and output …
Browse files Browse the repository at this point in the history
…flickables

Formatted the input and output text for output display text area
  • Loading branch information
waaake committed Jan 8, 2025
1 parent 49052df commit a90d5c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meshroom/ui/qml/GraphEditor/ScriptEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Item {
*/

// Replace the text to be RichText Supportive
return "<font color=#868686>" + replace(text, "\n", "<br>") + "</font><br><br>"
return "<font color=#868686>> Input:<br>" + replace(text, "\n", "<br>") + "</font><br>"
}

function formatOutput(text) {
Expand All @@ -60,7 +60,7 @@ Item {
*/

// Replace the text to be RichText Supportive
return "<font color=#49a1f3>" + "Result: " + replace(text, "\n", "<br>") + "</font><br><br>"
return "<font color=#49a1f3>> Result:<br>" + replace(text, "\n", "<br>") + "</font><br>"
}

function clearHistory() {
Expand Down Expand Up @@ -295,7 +295,7 @@ Item {
width: parent.width
height: parent.height
contentWidth: width
contentHeight: ( input.lineCount + 5 ) * input.font.pixelSize // + 5 lines for buffer to be scrolled and visibility
contentHeight: input.contentHeight;

anchors.left: lineNumbers.right
anchors.top: parent.top
Expand Down Expand Up @@ -348,7 +348,7 @@ Item {
width: parent.width
height: parent.height
contentWidth: width
contentHeight: ( output.lineCount + 5 ) * output.font.pixelSize // + 5 lines for buffer to be scrolled and visibility
contentHeight: output.contentHeight;

ScrollBar.vertical: MScrollBar {}

Expand Down

0 comments on commit a90d5c4

Please sign in to comment.