Commit be818a84 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to change color theme

parent 4cb28958
Pipeline #159011 passed with stage
in 1 minute and 33 seconds
......@@ -50,6 +50,7 @@
#include <KMime/KMimeMessage>
#include <KActionCollection>
#include <KActionMenu>
#include <KMessageBox>
#include <KProcess>
#include <KSelectAction>
......@@ -69,6 +70,7 @@
#include <QTemporaryFile>
#include <KCheckableProxyModel>
#include <KColorSchemeManager>
#include <KSharedConfig>
#include <QApplication>
#include <QStandardPaths>
......@@ -718,6 +720,9 @@ void ActionManager::initActions()
mACollection->addAction(QStringLiteral("edit_categories"), action);
connect(action, &QAction::triggered, mCalendarView->dialogManager(), &KODialogManager::showCategoryEditDialog);
auto manager = new KColorSchemeManager(this);
mACollection->addAction(QStringLiteral("colorscheme_menu"), manager->createSchemeSelectionMenu(this));
if (mIsPart) {
action = new QAction(QIcon::fromTheme(QStringLiteral("configure")), i18n("&Configure KOrganizer..."), this);
mACollection->addAction(QStringLiteral("korganizer_configure"), action);
......
<!DOCTYPE gui>
<gui name="korganizer" version="437" translationDomain="korganizer">
<gui name="korganizer" version="438" translationDomain="korganizer">
<MenuBar>
<Menu name="file"><text>&amp;File</text>
<Merge/>
......@@ -103,6 +103,7 @@
<Action name="upload_freebusy"/>
</Menu>
<Menu name="settings"><text>&amp;Settings</text>
<Action name="colorscheme_menu" />
<Menu name="sidebar" append="show_merge"><text>&amp;Sidebar</text>
<Action name="show_datenavigator"/>
<Action name="show_todoview"/>
......
<!DOCTYPE gui>
<gui name="korganizer" version="436" translationDomain="korganizer">
<gui name="korganizer" version="437" translationDomain="korganizer">
<MenuBar>
<Menu name="file"><text>&amp;File</text>
<Menu name="import"><text>&amp;Import</text>
......@@ -91,6 +91,7 @@
<Action name="upload_freebusy"/>
</Menu>
<Menu name="settings"><text>&amp;Settings</text>
<Action name="colorscheme_menu" />
<Menu name="sidebar" append="show_merge"><text>&amp;Sidebar</text>
<Action name="show_datenavigator"/>
<Action name="show_todoview"/>
......
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