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

Allow to change theme

parent 78da9f4a
Pipeline #158884 passed with stage
in 1 minute and 14 seconds
<?xml version="1.0"?>
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
<gui version="420" name="kontact" >
<gui version="421" name="kontact" >
<MenuBar>
<Menu name="file" noMerge="1">
<text>&amp;File</text>
......@@ -21,6 +21,8 @@
<Merge name="StandardToolBarMenuHandler" />
<Merge/>
<Separator/>
<Action name="colorscheme_menu" />
<Separator/>
<Action name="switch_application_language" group="settings_configure"/>
<Action name="options_configure_keybinding"/>
<Action name="options_configure_toolbars"/>
......
......@@ -20,6 +20,7 @@ using namespace Kontact;
#ifdef WIN32
#include <windows.h>
#else
#include <KColorSchemeManager>
#include <QFontDatabase>
#include <QMenuBar>
#include <unistd.h>
......@@ -309,6 +310,9 @@ void MainWindow::setupActions()
mShowFullScreenAction = KStandardAction::fullScreen(nullptr, nullptr, this, actionCollection());
actionCollection()->setDefaultShortcut(mShowFullScreenAction, Qt::Key_F11);
connect(mShowFullScreenAction, &QAction::toggled, this, &MainWindow::slotFullScreen);
auto manager = new KColorSchemeManager(this);
actionCollection()->addAction(QStringLiteral("colorscheme_menu"), manager->createSchemeSelectionMenu(this));
}
void MainWindow::slotFullScreen(bool t)
......
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