Commit 86329ca1 authored by Nate Graham's avatar Nate Graham
Browse files

Replace Task Manager with Icons-Only-Task Manager in the default panel, and thicken it

Summary:
This patch implements the part of T12441 that was virtually universally agreed-to:
switching out the regular Task Manager for an Icons-Only Task Manager and pinning
some apps by default. The panel is also thickened to to 46px (with the default font,
since the calculation is based on GridUnits, which are font-aware). The panel remains
in its current position pending further discussion about whether or not we want to
move it to the left edge.

Ideally I'd like for this patch to used for discussions about the implementation, not the
general concept, so if you have concerns about that, please put them in T12441.

Test Plan: This is now the default panel: {F8290193}

Reviewers: #vdg, #plasma, niccolove, cblack

Reviewed By: #vdg, #plasma, niccolove, cblack

Subscribers: rikmills, mart, filipf, kmaterka, gvgeo, davidedmundson, ndavis, niccolove, The-Feren-OS-Dev, plasma-devel

Tags: #plasma

Maniphest Tasks: T12441

Differential Revision: https://phabricator.kde.org/D27845
parent 876eedfb
......@@ -73,7 +73,7 @@
</entry>
<entry name="launchers" type="StringList">
<label>The list of launcher tasks on the widget. Usually .desktop file or executable URLs. Special URLs such as preferred://browser that expand to default applications are supported.</label>
<default></default>
<default>applications:systemsettings.desktop,applications:org.kde.discover.desktop,preferred://filemanager,preferred://browser</default>
</entry>
<entry name="middleClickAction" type="Enum">
<label>What to do on middle-mouse click on a task button.</label>
......
......@@ -24,8 +24,10 @@ if (freeEdges["bottom"] == true) {
// There is no free edge, so leave the default value
panel.location = "top";
}
panel.height = gridUnit * 2
// For an Icons-Only Task Manager on the bottom, *3 is too much, *2 is too little
// Round up to next highest even number since the Panel size widget only displays
// even numbers
panel.height = 2 * Math.ceil(gridUnit * 2.5 / 2)
// Restrict horizontal panel to a maximum size of a 21:9 monitor
const maximumAspectRatio = 21/9;
......@@ -46,7 +48,7 @@ kickoff.writeConfig("global", "Alt+F1")
//panel.addWidget("org.kde.plasma.showActivityManager")
panel.addWidget("org.kde.plasma.pager")
panel.addWidget("org.kde.plasma.taskmanager")
panel.addWidget("org.kde.plasma.icontasks")
/* Next up is determining whether to add the Input Method Panel
* widget to the panel or not. This is done based on whether
......
Markdown is supported
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