shift-shell/shell/contents/layout.js
Bhushan Shah e92188b5e9 shell: keep panelsfix.js in sync with layout.js
Otherwise if we add the panels which were missing, we will end up adding
panel without notifications and mediacontroller.
2021-02-26 09:31:59 +05:30

18 lines
760 B
JavaScript

var desktopsArray = desktopsForActivity(currentActivity());
for (var j = 0; j < desktopsArray.length; j++) {
desktopsArray[j].wallpaperPlugin = "org.kde.image";
}
desktopsArray[0].addWidget("org.kde.phone.krunner", 0, 0, screenGeometry(0).width, 20)
// keep this list in sync with shell/contents/updates/panelsfix.js
var panel = new Panel("org.kde.phone.panel");
panel.addWidget("org.kde.plasma.notifications");
panel.addWidget("org.kde.plasma.mediacontroller");
panel.height = 1 * gridUnit;
var bottomPanel = new Panel("org.kde.phone.taskpanel");
bottomPanel.location = "bottom";
if (screenGeometry(bottomPanel.screen).height > screenGeometry(bottomPanel.screen).width)
bottomPanel.height = 2 * gridUnit;
else
bottomPanel.height = 1 * gridUnit;