Commit 1a78b37d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to change theme

parent 4993640d
Pipeline #158839 passed with stage
in 2 minutes and 12 seconds
......@@ -36,6 +36,7 @@
#include <QMenu>
#include <kxmlguifactory.h>
#include <KColorSchemeManager>
#include <QHash>
#include <QWidget>
......@@ -434,6 +435,9 @@ void ActionManagerImpl::initMainWidget(MainWidget *mainWidget)
actionCollection()->addAction(QStringLiteral("focus_to_quickseach"), d->mQuickSearchAction);
connect(d->mQuickSearchAction, &QAction::triggered, mainWidget, &MainWidget::slotFocusQuickSearch);
auto manager = new KColorSchemeManager(this);
coll->addAction(QStringLiteral("colorscheme_menu"), manager->createSchemeSelectionMenu(this));
setArticleActionsEnabled(false);
}
......
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
<gui name="akregator_part" version="432" translationDomain="akregator">
<gui name="akregator_part" version="433" translationDomain="akregator">
<MenuBar>
<Menu name="file">
<Action name="file_import"/>
......@@ -77,6 +77,9 @@
<Menu noMerge="1" name="settings">
<text>&amp;Settings</text>
<Separator/>
<Action name="colorscheme_menu" />
<Separator/>
<DefineGroup append="top_merge" name="top_merge" />
<Action name="show_quick_filter" group="top_merge" />
<Action name="switch_application_language" group="settings_configure"/>
......
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
<gui name="akregator_shell" version="397">
<gui name="akregator_shell" version="398">
<MenuBar>
<Menu noMerge="1" name="file"><text>&amp;File</text>
<Merge/>
......@@ -38,6 +38,9 @@
<Menu noMerge="1" name="settings" >
<text>&amp;Settings</text>
<Merge name="StandardToolBarMenuHandler" />
<Separator/>
<Action name="colorscheme_menu" />
<Separator/>
<DefineGroup append="top_merge" name="top_merge" />
<Action name="options_show_menubar" group="top_merge" />
<Separator/>
......
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