Commit 4e328879 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to change theme color

parent 091e3e2e
Pipeline #159007 passed with stage
in 52 seconds
<!DOCTYPE gui>
<gui name="kaddressbook" version="44" translationDomain="kaddressbook">
<gui name="kaddressbook" version="45" translationDomain="kaddressbook">
<MenuBar>
<Menu name="file"><text>&amp;File</text>
......@@ -48,6 +48,7 @@
<Action name="options_show_qrcodes"/>
<Separator/>
<Action name="fullscreen"/>
</Menu>
<Menu name="action" noMerge="1"><text>&amp;Action</text>
......@@ -60,6 +61,8 @@
<Menu name="settings"><text>&amp;Settings</text>
<Action name="kaddressbook_configure" />
<Separator/>
<Action name="colorscheme_menu" />
</Menu>
</MenuBar>
......
......@@ -76,6 +76,7 @@
#include <QTextBrowser>
#include <Akonadi/ItemModifyJob>
#include <KColorSchemeManager>
#include <KWindowStateSaver>
#include <QActionGroup>
#include <QDBusConnection>
......@@ -684,6 +685,9 @@ void MainWidget::setupActions(KActionCollection *collection)
mServerSideSubscription = new QAction(QIcon::fromTheme(QStringLiteral("folder-bookmarks")), i18n("Serverside Subscription..."), this);
collection->addAction(QStringLiteral("serverside_subscription"), mServerSideSubscription);
connect(mServerSideSubscription, &QAction::triggered, this, &MainWidget::slotServerSideSubscription);
auto manager = new KColorSchemeManager(this);
collection->addAction(QStringLiteral("colorscheme_menu"), manager->createSchemeSelectionMenu(this));
}
void MainWidget::printPreview()
......
Supports Markdown
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