Commit 9c87e3dc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use KColorSchemeManager

parent 4232d588
Pipeline #158683 passed with stage
in 3 minutes and 38 seconds
......@@ -2,7 +2,7 @@
the same menu entries at the same place in KMail and Kontact -->
<!DOCTYPE gui>
<gui version="551" name="kmmainwin" translationDomain="kmail">
<gui version="552" name="kmmainwin" translationDomain="kmail">
<MenuBar>
<Menu noMerge="1" name="file" >
<text>&amp;File</text>
......@@ -217,6 +217,8 @@
<Menu noMerge="1" name="settings">
<text>&amp;Settings</text>
<Merge name="StandardToolBarMenuHandler"/>
<Action name="colorscheme_menu" />
<Separator/>
<Action name="options_show_menubar" group="settings_configure" />
<Action name="show_quick_search"/>
<Action name="filter" append="save_merge"/>
......
......@@ -163,6 +163,7 @@
#include <QVBoxLayout>
#include <WebEngineViewer/WebHitTestResult>
#include <KColorSchemeManager>
#include <QDBusConnection>
#include <QDBusInterface>
#include <QDBusReply>
......@@ -3542,6 +3543,8 @@ void KMMainWidget::setupActions()
mCollectionSwitcherTreeViewManager->addActions(listActions);
}
auto manager = new KColorSchemeManager(this);
actionCollection()->addAction(QStringLiteral("colorscheme_menu"), manager->createSchemeSelectionMenu(this));
}
void KMMainWidget::redoSwitchFolder()
......
......@@ -2,7 +2,7 @@
the same menu entries at the same place in KMail and Kontact -->
<!DOCTYPE gui>
<gui version="551" name="kmmainwin" translationDomain="kmail">
<gui version="552" name="kmmainwin" translationDomain="kmail">
<MenuBar>
<Menu noMerge="1" name="file" >
<text>&amp;File</text>
......@@ -217,6 +217,8 @@
<Menu noMerge="1" name="settings">
<text>&amp;Settings</text>
<Merge name="StandardToolBarMenuHandler"/>
<Action name="colorscheme_menu" />
<Separator/>
<Action name="options_show_menubar" group="settings_configure" />
<Action name="show_quick_search"/>
<Action name="filter" append="save_merge"/>
......
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