Issue #200: Icons under dark theme on Arch/KDE is broken

This commit is contained in:
Jakub Melka
2024-12-21 13:54:15 +01:00
parent e841836b99
commit c1fd0cdd4a
9 changed files with 106 additions and 21 deletions

View File

@ -52,15 +52,7 @@ int main(int argc, char *argv[])
pdf::PDFSecurityHandler::setNoDRMMode();
}
if (parser.isSet(lightGui))
{
pdf::PDFWidgetUtils::setDarkTheme(false);
}
if (parser.isSet(darkGui))
{
pdf::PDFWidgetUtils::setDarkTheme(true);
}
pdf::PDFWidgetUtils::setDarkTheme(parser.isSet(lightGui), parser.isSet(darkGui));
QIcon appIcon(":/app-icon.svg");
QApplication::setWindowIcon(appIcon);