Skip to content

Commit

Permalink
Draw an overlay when HotList autocomplete is show to fade out inactiv…
Browse files Browse the repository at this point in the history
…e items
  • Loading branch information
MartinBriza committed Apr 17, 2024
1 parent c538737 commit 9219899
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/Lith/UI/SettingsHotlistFormatEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Dialog {

Fields.Base {
id: formatField
z: 1
visible: !root.helpVisible
summary: qsTr("Format definition")

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9219899

Please sign in to comment.