Browse Source

fix: clear custom style before update style

pull/5934/head
TriKriSta 5 years ago committed by Anthony Bilinski
parent
commit
a97c53313a
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 6
      src/widget/widget.cpp

6
src/widget/widget.cpp

@ -2401,6 +2401,12 @@ void Widget::clearAllReceipts() @@ -2401,6 +2401,12 @@ void Widget::clearAllReceipts()
void Widget::reloadTheme()
{
setStyleSheet("");
QWidgetList wgts = findChildren<QWidget*>();
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"));

Loading…
Cancel
Save