Commit 271f2312 authored by Laurent Montel's avatar Laurent Montel 😁

fix load default theme

parent db1b9132
......@@ -18,4 +18,4 @@ target_link_libraries(messageviewer_defaultgrantleeheaderstyleplugin
)
install(TARGETS messageviewer_defaultgrantleeheaderstyleplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
install(DIRECTORY theme/5.2 DESTINATION ${KDE_INSTALL_DATADIR}/messageviewer/themes/ )
install(DIRECTORY theme/5.2 DESTINATION ${KDE_INSTALL_DATADIR}/messageviewer/defaultthemes/ )
......@@ -42,6 +42,7 @@ void DefaultGrantleeHeaderStyleInterface::createAction(KActionMenu *menu, QActio
const QStringList defaultThemePath = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("messageviewer/defaultthemes/"), QStandardPaths::LocateDirectory);
if (!defaultThemePath.isEmpty()) {
const QString themeName = DefaultGrantleeHeaderStylePluginSettings::self()->themeName();
qDebug()<<" themeName"<<themeName << "defaultThemePath.at(0)"<<defaultThemePath.at(0);
mDefaultTheme = GrantleeTheme::ThemeManager::loadTheme(defaultThemePath.at(0),
themeName,
QStringLiteral("kmail_default.desktop"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment