fix icon theme search paths
using fallback search paths breaks qadwaitadecorations Signed-off-by: leia uwu <leia@tutamail.com>
This commit is contained in:
parent
28a471777a
commit
614574f15c
1 changed files with 3 additions and 4 deletions
|
@ -37,7 +37,8 @@
|
|||
ThemeManager::ThemeManager()
|
||||
{
|
||||
QIcon::setFallbackThemeName(QIcon::themeName());
|
||||
QIcon::setFallbackSearchPaths(QIcon::themeSearchPaths());
|
||||
QIcon::setThemeSearchPaths(QIcon::themeSearchPaths() << m_iconThemeFolder.path());
|
||||
|
||||
themeDebugLog() << "Determining System Widget Theme...";
|
||||
const auto& style = QApplication::style();
|
||||
m_defaultStyle = style->objectName();
|
||||
|
@ -95,8 +96,6 @@ void ThemeManager::initializeIcons()
|
|||
// set icon theme search path!
|
||||
themeDebugLog() << "<> Initializing Icon Themes";
|
||||
|
||||
QIcon::setThemeSearchPaths({ m_iconThemeFolder.path(), ":/icons" });
|
||||
|
||||
for (const QString& id : builtinIcons) {
|
||||
IconTheme theme(id, QString(":/icons/%1").arg(id));
|
||||
if (!theme.load()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue