mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
In convergence mode, show a running-app icon strip in the navigation panel using the existing TaskManager.TasksModel. Each icon activates its window on click, with an indicator dot for the active window. Replace the mobile task switcher button with a KWin Overview trigger: add triggerOverview() to TaskPanel (D-Bus call to kglobalaccel), swap the button icon to view-grid-symbolic, and enable the Overview effect in the envmanager KWin config when convergence mode is active. Wire convergenceMode and taskModel properties from NavigationPanelComponent through to NavigationPanel so the task strip populates from the existing TasksModel instance.
19 lines
420 B
C++
19 lines
420 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Plasma/Containment>
|
|
|
|
class TaskPanel : public Plasma::Containment
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
TaskPanel(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
|
|
Q_INVOKABLE void triggerTaskSwitcher() const;
|
|
Q_INVOKABLE void triggerOverview() const;
|
|
};
|