plugins/aurorae: Fix config module

This commit is contained in:
Nicolas Fella 2023-06-14 18:42:27 +02:00 committed by Vlad Zahorodnii
parent 280bfa3172
commit 3415d6e0b3
7 changed files with 22 additions and 16 deletions

View file

@ -57,18 +57,8 @@ configure_file(aurorae.knsrc.cmake ${CMAKE_CURRENT_BINARY_DIR}/aurorae.knsrc)
########### install files ############### ########### install files ###############
if (KWIN_BUILD_KCMS) if (KWIN_BUILD_KCMS)
kwin_add_effect_config(kwin_aurorae_config auroraeconfig.cpp) add_subdirectory(config)
target_link_libraries(kwin_aurorae_config
KF6::ConfigGui
KF6::KCMUtils
KF6::I18n
KDecoration2::KDecoration
Qt::DBus
Qt::UiTools
Qt::Widgets
KWinEffectsInterface
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/aurorae.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/aurorae.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
endif() endif()

View file

@ -618,7 +618,7 @@ void ThemeProvider::findAllQmlThemes()
data.setThemeName(offer.pluginId()); data.setThemeName(offer.pluginId());
data.setVisibleName(offer.name()); data.setVisibleName(offer.name());
if (hasConfiguration(offer.pluginId())) { if (hasConfiguration(offer.pluginId())) {
data.setConfigurationName("kwin_aurorae_config"); data.setConfigurationName("kcm_auroraedecoration");
} }
m_themes.append(data); m_themes.append(data);
} }
@ -657,7 +657,7 @@ void ThemeProvider::findAllSvgThemes()
data.setThemeName(QLatin1String("__aurorae__svg__") + packageName); data.setThemeName(QLatin1String("__aurorae__svg__") + packageName);
data.setVisibleName(name); data.setVisibleName(name);
if (hasConfiguration(data.themeName())) { if (hasConfiguration(data.themeName())) {
data.setConfigurationName("kwin_aurorae_config"); data.setConfigurationName("kcm_auroraedecoration");
} }
m_themes.append(data); m_themes.append(data);
} }

View file

@ -4,6 +4,5 @@
"defaultTheme": "kwin4_decoration_qml_plastik", "defaultTheme": "kwin4_decoration_qml_plastik",
"themeListKeyword": "themes", "themeListKeyword": "themes",
"themes": true "themes": true
}, }
"X-KDE-ConfigModule": "kwin4_decoration_qml_plastik"
} }

View file

@ -0,0 +1,11 @@
kcoreaddons_add_plugin(kcm_auroraedecoration SOURCES auroraeconfig.cpp INSTALL_NAMESPACE "${KDECORATION_KCM_PLUGIN_DIR}")
target_link_libraries(kcm_auroraedecoration
KF6::ConfigGui
KF6::KCMUtils
KF6::I18n
KDecoration2::KDecoration
Qt::DBus
Qt::UiTools
Qt::Widgets
KWinEffectsInterface
)

View file

@ -15,7 +15,7 @@
#include <QLabel> #include <QLabel>
#include <QUiLoader> #include <QUiLoader>
K_PLUGIN_CLASS(Aurorae::ConfigurationModule) K_PLUGIN_CLASS_WITH_JSON(Aurorae::ConfigurationModule, "kcm_auroraeconfig.json")
namespace Aurorae namespace Aurorae
{ {

View file

@ -0,0 +1,6 @@
{
"KPlugin": {
"Description": "Window Decoration Theme Engine",
"Name": "Aurorae"
}
}