plugins/aurorae: Fix config module
This commit is contained in:
parent
280bfa3172
commit
3415d6e0b3
7 changed files with 22 additions and 16 deletions
|
@ -57,18 +57,8 @@ configure_file(aurorae.knsrc.cmake ${CMAKE_CURRENT_BINARY_DIR}/aurorae.knsrc)
|
|||
########### install files ###############
|
||||
|
||||
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})
|
||||
endif()
|
||||
|
||||
|
|
|
@ -618,7 +618,7 @@ void ThemeProvider::findAllQmlThemes()
|
|||
data.setThemeName(offer.pluginId());
|
||||
data.setVisibleName(offer.name());
|
||||
if (hasConfiguration(offer.pluginId())) {
|
||||
data.setConfigurationName("kwin_aurorae_config");
|
||||
data.setConfigurationName("kcm_auroraedecoration");
|
||||
}
|
||||
m_themes.append(data);
|
||||
}
|
||||
|
@ -657,7 +657,7 @@ void ThemeProvider::findAllSvgThemes()
|
|||
data.setThemeName(QLatin1String("__aurorae__svg__") + packageName);
|
||||
data.setVisibleName(name);
|
||||
if (hasConfiguration(data.themeName())) {
|
||||
data.setConfigurationName("kwin_aurorae_config");
|
||||
data.setConfigurationName("kcm_auroraedecoration");
|
||||
}
|
||||
m_themes.append(data);
|
||||
}
|
||||
|
|
|
@ -4,6 +4,5 @@
|
|||
"defaultTheme": "kwin4_decoration_qml_plastik",
|
||||
"themeListKeyword": "themes",
|
||||
"themes": true
|
||||
},
|
||||
"X-KDE-ConfigModule": "kwin4_decoration_qml_plastik"
|
||||
}
|
||||
}
|
||||
|
|
11
src/plugins/kdecorations/aurorae/src/config/CMakeLists.txt
Normal file
11
src/plugins/kdecorations/aurorae/src/config/CMakeLists.txt
Normal 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
|
||||
)
|
|
@ -15,7 +15,7 @@
|
|||
#include <QLabel>
|
||||
#include <QUiLoader>
|
||||
|
||||
K_PLUGIN_CLASS(Aurorae::ConfigurationModule)
|
||||
K_PLUGIN_CLASS_WITH_JSON(Aurorae::ConfigurationModule, "kcm_auroraeconfig.json")
|
||||
|
||||
namespace Aurorae
|
||||
{
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"KPlugin": {
|
||||
"Description": "Window Decoration Theme Engine",
|
||||
"Name": "Aurorae"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue