Skip to content

Commit

Permalink
Merge pull request #696 from freedomofpress/fix-qlistview-item-selected
Browse files Browse the repository at this point in the history
remove default highlight for source in source list
  • Loading branch information
kushaldas authored Jan 13, 2020
2 parents f1facac + 1ff4ec3 commit 15314ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,16 +841,14 @@ class SourceList(QListWidget):
Displays the list of sources.
"""

# Thick 500px border in QListView::item:selected is a workaround.
# See https://github.com/freedomofpress/securedrop-client/issues/331
CSS = '''
QListView {
border: none;
show-decoration-selected: 1;
show-decoration-selected: 0;
border-right: 3px solid #f3f5f9;
}
QListView::item:selected {
border: 500px solid #f3f5f9;
background-color: #f3f5f9;
}
'''

Expand Down

0 comments on commit 15314ae

Please sign in to comment.