Skip to content

Commit

Permalink
Merge pull request #496 from freedomofpress/bg
Browse files Browse the repository at this point in the history
Same bg for scrollarea, conversation view, selected source
  • Loading branch information
kushaldas committed Jul 30, 2019
2 parents 7866d09 + 874eec3 commit 897710e
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ class MainView(QWidget):

CSS = '''
#view_holder {
background-color: #fff;
background-color: #efeef7;
}
'''

Expand Down Expand Up @@ -670,6 +670,12 @@ class SourceList(QListWidget):
QListWidget::item:selected {
background: #efeef7;
}
QListView {
show-decoration-selected: 0;
}
QListView::item {
border-bottom: 1px solid #efeef7;
}
'''

def __init__(self):
Expand Down Expand Up @@ -1282,10 +1288,9 @@ class SpeechBubble(QWidget):
#speech_bubble {
font-family: Source Sans Pro Regular;
font-size: 15px;
padding: 8px;
padding: 20px;
min-height: 32px;
min-width: 556px;
border: 1px solid #999;
border-bottom: 0;
}
#color_bar {
Expand Down Expand Up @@ -1528,6 +1533,16 @@ class ConversationView(QWidget):

CONVERSATION_SPACING = 28

CSS = '''
#container {
background: #efeef7;
}
#scroll {
background: #efeef7;
border: none;
}
'''

def __init__(
self,
source_db_object: Source,
Expand All @@ -1537,6 +1552,9 @@ def __init__(
self.source = source_db_object
self.controller = controller

# Set styles
self.setStyleSheet(self.CSS)

self.container = QWidget()
self.container.setObjectName('container')
self.conversation_layout = QVBoxLayout()
Expand Down

0 comments on commit 897710e

Please sign in to comment.