shift-shell/shell/contents/layout.js
Aleix Pol 7f79b373ea Make sure panels are positioned in the right place on the first run
Addresses a problem where the bottom panel would be on top on first runs
sometimes.
2021-09-14 10:51:01 +00:00

14 lines
609 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.location = "top";
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";