From 92198991d7e512942522e4c907473282362cc86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C5=99=C3=ADza?= Date: Wed, 17 Apr 2024 18:14:52 +0200 Subject: [PATCH] Draw an overlay when HotList autocomplete is show to fade out inactive items --- modules/Lith/UI/SettingsHotlistFormatEditor.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/Lith/UI/SettingsHotlistFormatEditor.qml b/modules/Lith/UI/SettingsHotlistFormatEditor.qml index 53ab6d8..e92c4a1 100644 --- a/modules/Lith/UI/SettingsHotlistFormatEditor.qml +++ b/modules/Lith/UI/SettingsHotlistFormatEditor.qml @@ -145,6 +145,7 @@ Dialog { Fields.Base { id: formatField + z: 1 visible: !root.helpVisible summary: qsTr("Format definition") @@ -183,8 +184,17 @@ Dialog { model: formatSplitter.variables delegate: Item { id: variableDelegate + z: variableDelegateInput.activeFocus ? 1 : 0 Layout.fillWidth: true implicitHeight: variableDelegateLayout.implicitHeight + Rectangle { + visible: variableDelegateInput.activeFocus && autocomplete.visible + y: -50000 + x: -50000 + color: ColorUtils.setAlpha(LithPalette.regular.window, 0.7) + width: 100000 + height: 100000 + } RowLayout { id: variableDelegateLayout width: parent.width