Skip to content

Commit

Permalink
fix selection coloring for source list
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier committed Jan 11, 2020
1 parent f1facac commit 1ff4ec3
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 1ff4ec3

Please sign in to comment.