ui: made icon buttons self updating on color scheme change
* fixed hatching not replaced in single file view title bar on color scheme change
This commit is contained in:
@@ -29,8 +29,9 @@ void QtUndoRedoView::refreshView()
|
||||
m_onQtThread(
|
||||
[=]()
|
||||
{
|
||||
setStyleSheet();
|
||||
m_widget->refreshStyle();
|
||||
m_widget->setStyleSheet(utility::getStyleSheet(
|
||||
ResourcePaths::getGuiPath().concatenate(L"undoredo_view/undoredo_view.css")
|
||||
).c_str());
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -64,10 +65,3 @@ void QtUndoRedoView::updateHistory(const std::vector<SearchMatch>& searchMatches
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void QtUndoRedoView::setStyleSheet()
|
||||
{
|
||||
m_widget->setStyleSheet(utility::getStyleSheet(
|
||||
ResourcePaths::getGuiPath().concatenate(L"undoredo_view/undoredo_view.css")
|
||||
).c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user