fix: fix system icons

This sets the fallback icon theme to the current(system default) icon theme before
launcher specific themes are applied

And removes `Inherits` line of multimc/legacy icon theme because it can end up making it
inherit a default theme set from /usr/share/icons/default/index.theme
instead of the user configured theme (probably a qt bug?)

Signed-off-by: leia uwu <leia@tutamail.com>
(cherry picked from commit fd9c80db62436b1a364cb8342ba45a059c53f899)
This commit is contained in:
leia uwu 2024-11-30 11:30:25 -03:00 committed by github-actions[bot]
parent e0c323a190
commit e7e9265c40
2 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,6 @@
[Icon Theme] [Icon Theme]
Name=Legacy Name=Legacy
Comment=Default Icons Comment=Default Icons
Inherits=default
Directories=8x8,16x16,22x22,24x24,32x32,32x32/instances,48x48,50x50/instances,64x64,128x128/instances,256x256,scalable,scalable/instances Directories=8x8,16x16,22x22,24x24,32x32,32x32/instances,48x48,50x50/instances,64x64,128x128/instances,256x256,scalable,scalable/instances
[8x8] [8x8]

View File

@ -36,6 +36,7 @@
ThemeManager::ThemeManager() ThemeManager::ThemeManager()
{ {
QIcon::setFallbackThemeName(QIcon::themeName());
themeDebugLog() << "Determining System Widget Theme..."; themeDebugLog() << "Determining System Widget Theme...";
const auto& style = QApplication::style(); const auto& style = QApplication::style();
m_defaultStyle = style->objectName(); m_defaultStyle = style->objectName();