mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Initialize the theme infrastructure in YACReader
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
#include "main_window_viewer.h"
|
#include "main_window_viewer.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "exit_check.h"
|
#include "exit_check.h"
|
||||||
|
#include "theme_manager.h"
|
||||||
|
|
||||||
#include "QsLog.h"
|
#include "QsLog.h"
|
||||||
#include "QsLogDest.h"
|
#include "QsLogDest.h"
|
||||||
@ -115,6 +116,8 @@ int main(int argc, char *argv[])
|
|||||||
app.setApplicationName("YACReader");
|
app.setApplicationName("YACReader");
|
||||||
app.setOrganizationName("YACReader");
|
app.setOrganizationName("YACReader");
|
||||||
|
|
||||||
|
ThemeManager::instance().initialize();
|
||||||
|
|
||||||
if (QIcon::hasThemeIcon("YACReader")) {
|
if (QIcon::hasThemeIcon("YACReader")) {
|
||||||
app.setWindowIcon(QIcon::fromTheme("YACReader"));
|
app.setWindowIcon(QIcon::fromTheme("YACReader"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user