mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
18 lines
608 B
JavaScript
18 lines
608 B
JavaScript
|
|
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");
|
|
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;
|