shift-shell/shell/contents/layout.js

19 lines
608 B
JavaScript
Raw Normal View History

var desktopsArray = desktopsForActivity(currentActivity());
for (var j = 0; j < desktopsArray.length; j++) {
desktopsArray[j].wallpaperPlugin = "org.kde.image";
}
var panel = new Panel("org.kde.phone.panel");
2019-10-22 10:56:36 +00:00
panel.addWidget("org.kde.plasma.notifications");
panel.addWidget("org.kde.plasma.mediacontroller");
2019-02-07 11:38:11 +00:00
panel.height = 1 * gridUnit;
var bottomPanel = new Panel("org.kde.phone.taskpanel");
bottomPanel.location = "bottom";
2015-08-21 15:00:11 +00:00
if (screenGeometry(bottomPanel.screen).height > screenGeometry(bottomPanel.screen).width)
2019-02-07 11:38:11 +00:00
bottomPanel.height = 2 * gridUnit;
else
2019-02-07 11:38:11 +00:00
bottomPanel.height = 1 * gridUnit;