Skip to content

Commit 9219899

Browse files
committed
Draw an overlay when HotList autocomplete is show to fade out inactive items
1 parent c538737 commit 9219899

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/Lith/UI/SettingsHotlistFormatEditor.qml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Dialog {
145145

146146
Fields.Base {
147147
id: formatField
148+
z: 1
148149
visible: !root.helpVisible
149150
summary: qsTr("Format definition")
150151

@@ -183,8 +184,17 @@ Dialog {
183184
model: formatSplitter.variables
184185
delegate: Item {
185186
id: variableDelegate
187+
z: variableDelegateInput.activeFocus ? 1 : 0
186188
Layout.fillWidth: true
187189
implicitHeight: variableDelegateLayout.implicitHeight
190+
Rectangle {
191+
visible: variableDelegateInput.activeFocus && autocomplete.visible
192+
y: -50000
193+
x: -50000
194+
color: ColorUtils.setAlpha(LithPalette.regular.window, 0.7)
195+
width: 100000
196+
height: 100000
197+
}
188198
RowLayout {
189199
id: variableDelegateLayout
190200
width: parent.width

0 commit comments

Comments
 (0)