new optional KDE Frameworks plugin to support system color schemes

This commit is contained in:
Blue 2022-01-26 23:53:44 +03:00
parent 802e2f11a1
commit 0ff9f12157
Signed by: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 130 additions and 10 deletions

View file

@ -95,6 +95,7 @@ namespace Shared {
static FileInfo getFileInfo(const QString& path);
static void highlightInFileManager(const QString& path);
static QIcon createThemePreview(const QString& path);
template<typename T>
static T fromInt(int src);
@ -128,6 +129,16 @@ namespace Shared {
static HighlightInFileManager hfm;
#endif
#ifdef WITH_KCONFIG
static QLibrary colorSchemeTools;
typedef QIcon* (*CreatePreview)(const QString&);
typedef void (*DeletePreview)(QIcon*);
static CreatePreview createPreview;
static DeletePreview deletePreview;
#endif
};
}