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:
parent
6b77446c82
commit
a97c53313a
@ -2401,6 +2401,12 @@ void Widget::clearAllReceipts()
|
|||||||
|
|
||||||
void Widget::reloadTheme()
|
void Widget::reloadTheme()
|
||||||
{
|
{
|
||||||
|
setStyleSheet("");
|
||||||
|
QWidgetList wgts = findChildren<QWidget*>();
|
||||||
|
for (auto x : wgts) {
|
||||||
|
x->setStyleSheet("");
|
||||||
|
}
|
||||||
|
|
||||||
this->setStyleSheet(Style::getStylesheet("window/general.css"));
|
this->setStyleSheet(Style::getStylesheet("window/general.css"));
|
||||||
QString statusPanelStyle = Style::getStylesheet("window/statusPanel.css");
|
QString statusPanelStyle = Style::getStylesheet("window/statusPanel.css");
|
||||||
ui->tooliconsZone->setStyleSheet(Style::getStylesheet("tooliconsZone/tooliconsZone.css"));
|
ui->tooliconsZone->setStyleSheet(Style::getStylesheet("tooliconsZone/tooliconsZone.css"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user