Add border to Completer to distinguish it from the window

This commit is contained in:
Loren Burkholder 2021-01-21 19:05:34 -05:00
parent 3508ed56a0
commit b1f8397499

View file

@ -57,9 +57,9 @@ Popup {
completer = undefined; completer = undefined;
} }
} }
padding: 0 padding: 1
onAboutToShow: currentIndex = -1 onAboutToShow: currentIndex = -1
height: listView.contentHeight height: listView.contentHeight + 2 // + 2 for the padding on top and bottom
Connections { Connections {
onTimelineChanged: completer = null onTimelineChanged: completer = null
@ -183,6 +183,8 @@ Popup {
color: colors.base color: colors.base
implicitHeight: popup.contentHeight implicitHeight: popup.contentHeight
implicitWidth: popup.contentWidth implicitWidth: popup.contentWidth
// colors.text should always contrast nicely with the window background
border.color: colors.text
} }
} }