From d6062a83203ea3864dcbc65f3904940eb6a98d90 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 28 Sep 2020 18:58:28 -0400 Subject: [PATCH] DebugConsole: add border "prompt" to delegates --- src/gui/DebugConsole.qml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/gui/DebugConsole.qml b/src/gui/DebugConsole.qml index 41c55429..4821c0cd 100644 --- a/src/gui/DebugConsole.qml +++ b/src/gui/DebugConsole.qml @@ -183,20 +183,18 @@ HDrawer { text: `
` + - `` + + `` + utils.plain2Html(model.input) + "" + - ( - model.output ? - "
" + utils.plain2Html(model.output) : - "" - ) + + (model.input && model.output ? "
" : "") + + (model.output ? utils.plain2Html(model.output) : "") + "
" textFormat: HSelectableLabel.RichText wrapMode: HLabel.Wrap color: model.error ? theme.colors.errorText : theme.colors.text font.family: theme.fontFamily.mono + leftPadding: theme.spacing Layout.fillWidth: true @@ -251,6 +249,15 @@ HDrawer { } } } + + Rectangle { + width: 1 + height: parent.height + color: + model.error ? + theme.colors.negativeBackground : + theme.colors.accentElement + } } FlickShortcuts {