improved dark theme handling on mupp for qt5.

This commit is contained in:
2025-03-29 20:54:03 +01:00
parent 71de742840
commit 6c82e88789
6 changed files with 73 additions and 40 deletions

View File

@@ -212,13 +212,13 @@ bool PmuppAdminXMLParser::characters()
fAdmin->setIgnoreThemeAutoDetection(false);
break;
case eDarkThemeIconsMenu:
if ((str == "yes") || (str == "1") || (str == "true"))
if ((str == "yes") || (str == "y") || (str == "1") || (str == "true"))
fAdmin->setThemeIconsMenu(true);
else
fAdmin->setThemeIconsMenu(false);
break;
case eDarkThemeIconsToolbar:
if ((str == "yes") || (str == "1") || (str == "true"))
if ((str == "yes") || (str == "y") || (str == "1") || (str == "true"))
fAdmin->setThemeIconsToolbar(true);
else
fAdmin->setThemeIconsToolbar(false);