Skip to content

Commit

Permalink
Added a popup listview style for the qcompleter popup to fix white-ov…
Browse files Browse the repository at this point in the history
…er-white issue in the dropdown (#650)
  • Loading branch information
shiva-kannan committed Mar 18, 2020
1 parent cbb98f4 commit 7638288
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cuesubmit/cuesubmit/ui/Style.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
}
"""

POPUP_LIST_VIEW = """
background-color: rgb(70, 80, 90);
"""

INVALID_TEXT = """
QLabel {
color: rgb(220, 20, 20);
Expand Down
1 change: 1 addition & 0 deletions cuesubmit/cuesubmit/ui/Widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def setupCompleter(self):
self.completer.setCaseSensitivity(QtCore.Qt.CaseInsensitive)
self.completerModel.setStringList(self.completerStrings)
self.completer.setModel(self.completerModel)
self.completer.popup().setStyleSheet(Style.POPUP_LIST_VIEW)
self.setCompleter(self.completer)

def keyPressEvent(self, event):
Expand Down

0 comments on commit 7638288

Please sign in to comment.