Initialize the theme infrastructure in YACReaderLibrary

This commit is contained in:
luisangelsm
2026-01-12 19:04:31 +01:00
parent b9b8ad81a5
commit df538fac89

View File

@ -21,6 +21,7 @@
#include "db_helper.h"
#include "yacreader_libraries.h"
#include "exit_check.h"
#include "theme_manager.h"
#ifdef Q_OS_MACOS
#include "trayhandler.h"
#endif
@ -140,6 +141,9 @@ int main(int argc, char **argv)
app.setOrganizationName("YACReader");
app.setApplicationVersion(VERSION);
// Theme initialization
ThemeManager::instance().initialize();
// Set window icon according to Freedesktop icon specification
// This is mostly relevant for Linux and other Unix systems
if (QIcon::hasThemeIcon("YACReaderLibrary")) {