mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixes #258 theme change doesn't apply
This commit is contained in:
parent
f4863cbccb
commit
74fd6c9663
3 changed files with 11 additions and 2 deletions
|
@ -30,10 +30,10 @@ protected:
|
|||
|
||||
float dpiMultiplier = 1.f;
|
||||
|
||||
virtual void refreshTheme();
|
||||
|
||||
private:
|
||||
void init();
|
||||
|
||||
virtual void refreshTheme();
|
||||
};
|
||||
|
||||
} // namespace widgets
|
||||
|
|
|
@ -114,6 +114,13 @@ ChannelView::~ChannelView()
|
|||
this->messageReplacedConnection.disconnect();
|
||||
}
|
||||
|
||||
void ChannelView::refreshTheme()
|
||||
{
|
||||
BaseWidget::refreshTheme();
|
||||
|
||||
this->layoutMessages();
|
||||
}
|
||||
|
||||
void ChannelView::queueUpdate()
|
||||
{
|
||||
if (this->updateTimer.isActive()) {
|
||||
|
|
|
@ -52,6 +52,8 @@ public:
|
|||
pajlada::Signals::NoArgSignal highlightedMessageReceived;
|
||||
|
||||
protected:
|
||||
virtual void refreshTheme() override;
|
||||
|
||||
virtual void resizeEvent(QResizeEvent *) override;
|
||||
|
||||
virtual void paintEvent(QPaintEvent *) override;
|
||||
|
|
Loading…
Reference in a new issue