basic theme changing

This commit is contained in:
Blue 2022-01-21 22:02:50 +03:00
parent a8a7ce2538
commit c708c33a92
Signed by: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 108 additions and 4 deletions

View file

@ -84,6 +84,7 @@ Shared::Global::Global():
tr("Squawk is going to query you for the password on every start of the program", "AccountPasswordDescription"),
tr("Your password is going to be stored in KDE wallet storage (KWallet). You're going to be queried for permissions", "AccountPasswordDescription")
}),
defaultSystemStyle(QApplication::style()->objectName()),
pluginSupport({
{"KWallet", false},
{"openFileManagerWindowJob", false}

View file

@ -27,7 +27,8 @@
#include <set>
#include <deque>
#include <QCoreApplication>
#include <QApplication>
#include <QStyle>
#include <QDebug>
#include <QMimeType>
#include <QMimeDatabase>
@ -84,6 +85,8 @@ namespace Shared {
const std::deque<QString> accountPassword;
const std::deque<QString> accountPasswordDescription;
const QString defaultSystemStyle;
static bool supported(const QString& pluginName);
static void setSupported(const QString& pluginName, bool support);