mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Initialize the theme infrastructure in YACReaderLibrary
This commit is contained in:
@ -21,6 +21,7 @@
|
|||||||
#include "db_helper.h"
|
#include "db_helper.h"
|
||||||
#include "yacreader_libraries.h"
|
#include "yacreader_libraries.h"
|
||||||
#include "exit_check.h"
|
#include "exit_check.h"
|
||||||
|
#include "theme_manager.h"
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
#include "trayhandler.h"
|
#include "trayhandler.h"
|
||||||
#endif
|
#endif
|
||||||
@ -140,6 +141,9 @@ int main(int argc, char **argv)
|
|||||||
app.setOrganizationName("YACReader");
|
app.setOrganizationName("YACReader");
|
||||||
app.setApplicationVersion(VERSION);
|
app.setApplicationVersion(VERSION);
|
||||||
|
|
||||||
|
// Theme initialization
|
||||||
|
ThemeManager::instance().initialize();
|
||||||
|
|
||||||
// Set window icon according to Freedesktop icon specification
|
// Set window icon according to Freedesktop icon specification
|
||||||
// This is mostly relevant for Linux and other Unix systems
|
// This is mostly relevant for Linux and other Unix systems
|
||||||
if (QIcon::hasThemeIcon("YACReaderLibrary")) {
|
if (QIcon::hasThemeIcon("YACReaderLibrary")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user