Gui: Add Std_ReloadStyleSheet command

This adds a command that will reload currently active stylesheet - a must have for stylesheet developers
This commit is contained in:
Kacper Donat
2024-05-12 15:42:36 +02:00
committed by Chris Hennes
parent ba9240a3f2
commit b231bbb0ca
2 changed files with 29 additions and 0 deletions

View File

@@ -2188,6 +2188,7 @@ void Application::setStyleSheet(const QString& qssFile, bool tiledBackground)
}
mw->setProperty("fc_currentStyleSheet", qssFile);
mw->setProperty("fc_tiledBackground", tiledBackground);
if (!qssFile.isEmpty()) {
// Search for stylesheet in user-defined search paths.