diff --git a/securedrop_client/gui/widgets.py b/securedrop_client/gui/widgets.py index ebb3ff1..5bcb411 100644 --- a/securedrop_client/gui/widgets.py +++ b/securedrop_client/gui/widgets.py @@ -3126,15 +3126,15 @@ class ConversationView(QWidget): Renders a conversation. """ - CSS = { - 'container': ''' - background: #f3f5f9; - ''', - 'scroll': ''' - border: 0; - background: #f3f5f9; - ''' + CSS = ''' + #container { + background: #f3f5f9; } + #scroll { + border: 0; + background: #f3f5f9; + } + ''' conversation_updated = pyqtSignal() @@ -3166,14 +3166,14 @@ class ConversationView(QWidget): self.conversation_layout.setContentsMargins(self.MARGIN_LEFT, 0, self.MARGIN_RIGHT, 0) self.conversation_layout.setSpacing(0) self.container.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) - self.container.setStyleSheet(self.CSS['container']) + # self.container.setStyleSheet(self.CSS['container']) self.scroll = QScrollArea() self.scroll.setObjectName('scroll') self.scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.scroll.setWidget(self.container) self.scroll.setWidgetResizable(True) - self.scroll.setStyleSheet(self.CSS['scroll']) + # self.scroll.setStyleSheet(self.CSS['scroll']) # Flag to show if the current user has sent a reply. See issue #61. self.reply_flag = False @@ -3185,6 +3185,7 @@ class ConversationView(QWidget): main_layout.addWidget(self.scroll) self.update_conversation(self.source.collection) + self.setStyleSheet(self.CSS) def update_conversation(self, collection: list) -> None: """