mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Initialize the theme infrastructure in YACReaderLibrary
This commit is contained in:
@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user