1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix: clear custom style before update style

This commit is contained in:
TriKriSta 2020-04-06 19:30:41 +03:00 committed by Anthony Bilinski
parent 6b77446c82
commit a97c53313a
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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"));