aboutsummaryrefslogtreecommitdiffstats
path: root/src/messageview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messageview.h')
-rw-r--r--src/messageview.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/messageview.h b/src/messageview.h
index 1be17f8..c55f5c5 100644
--- a/src/messageview.h
+++ b/src/messageview.h
@@ -105,6 +105,14 @@ protected:
/// rather than one widget.
bool eventFilter(QObject *watched, QEvent *event) override;
+ /// Re-renders when the desktop theme changes.
+ ///
+ /// The document's colours are baked into its stylesheet at build time, so
+ /// unlike a widget it does not restyle itself: switching the desktop from
+ /// light to dark would otherwise leave the open thread on the old palette
+ /// until the next selection.
+ void changeEvent(QEvent *event) override;
+
private:
void render();
void updateHeader();