mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 17:04:58 -04:00
Fix Relative URL in QSS files.
As qss files are read and added as plaintext, url() cannot find relative path. Using "url(%THISPATH%/" will be replaced by current file path.
This commit is contained in:
parent
a4d7b0299b
commit
bdce8e6d31
13 changed files with 121 additions and 136 deletions
|
@ -755,6 +755,9 @@ void Rshare::loadStyleSheet(const QString &sheetName)
|
|||
styleSheet += QLatin1String(file.readAll()) + "\n";
|
||||
file.close();
|
||||
}
|
||||
|
||||
/* replace %THISPATH% by file path so url can get relative files */
|
||||
styleSheet = styleSheet.replace("url(%THISPATH%",QString("url(%1").arg(fileInfo.absolutePath()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue