From a97c53313a351d32051dc19db65a92a7902cfc56 Mon Sep 17 00:00:00 2001 From: TriKriSta Date: Mon, 6 Apr 2020 19:30:41 +0300 Subject: [PATCH] fix: clear custom style before update style --- src/widget/widget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 24402436a..a95fe9308 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -2401,6 +2401,12 @@ void Widget::clearAllReceipts() void Widget::reloadTheme() { + setStyleSheet(""); + QWidgetList wgts = findChildren(); + for (auto x : wgts) { + x->setStyleSheet(""); + } + this->setStyleSheet(Style::getStylesheet("window/general.css")); QString statusPanelStyle = Style::getStylesheet("window/statusPanel.css"); ui->tooliconsZone->setStyleSheet(Style::getStylesheet("tooliconsZone/tooliconsZone.css"));