fix: only use window scale in children (#5833)
This commit is contained in:
@@ -19,8 +19,13 @@ namespace chatterino {
|
||||
BaseWidget::BaseWidget(QWidget *parent, Qt::WindowFlags f)
|
||||
: QWidget(parent, f)
|
||||
, theme(getApp()->getThemes())
|
||||
, scale_(this->scale())
|
||||
{
|
||||
auto *baseWidget = dynamic_cast<BaseWidget *>(this->window());
|
||||
if (baseWidget && baseWidget != this)
|
||||
{
|
||||
this->scale_ = baseWidget->scale_;
|
||||
}
|
||||
|
||||
this->signalHolder_.managedConnect(this->theme->updated, [this]() {
|
||||
this->themeChangedEvent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user