2014-09-26 19:06:16 +00:00
|
|
|
var id = currentActivity();
|
2014-11-19 18:58:09 +00:00
|
|
|
|
2014-09-26 19:06:16 +00:00
|
|
|
if (id.length < 1) {
|
2015-05-15 14:52:27 +00:00
|
|
|
id = createActivity("Homescreen", "org.kde.phone.homescreen")
|
2014-09-26 19:06:16 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-03 14:50:41 +00:00
|
|
|
var desktopsArray = desktopsForActivity(id);
|
2014-09-26 19:06:16 +00:00
|
|
|
for (var j = 0; j < desktopsArray.length; j++) {
|
|
|
|
|
desktopsArray[j].wallpaperPlugin = "org.kde.image";
|
2014-11-19 18:58:09 +00:00
|
|
|
//desktopsArray[j].name = "Homescreen" + (j > 0 ? " " + j : "");
|
2014-09-26 19:06:16 +00:00
|
|
|
desktopsArray[j].currentConfigGroup = ["Wallpaper",
|
|
|
|
|
desktopsArray[j].wallpaperPlugin,
|
|
|
|
|
"General"];
|
2015-06-18 23:31:44 +00:00
|
|
|
desktopsArray[j].writeConfig("Image", "org.kde.plasma.phone.lockers");
|
2014-09-03 14:50:41 +00:00
|
|
|
}
|
|
|
|
|
|
2015-03-13 14:31:13 +00:00
|
|
|
desktopsForActivity(id)[0].addWidget("org.kde.phone.notifications");
|
2015-03-13 21:16:19 +00:00
|
|
|
|
|
|
|
|
var panel = new Panel("org.kde.phone.panel");
|
2015-06-11 05:43:14 +00:00
|
|
|
panel.addWidget("org.kde.plasma.networkmanagement");
|
2015-06-14 03:23:27 +00:00
|
|
|
panel.addWidget("org.kde.plasma.phone.battery");
|
2015-06-23 00:57:12 +00:00
|
|
|
panel.addWidget("org.kde.plasma.volume");
|
2015-05-15 14:52:27 +00:00
|
|
|
panel.height = 60;
|
2015-06-11 22:35:46 +00:00
|
|
|
|
|
|
|
|
var bottomPanel = new Panel("org.kde.phone.taskpanel");
|
|
|
|
|
bottomPanel.location = "bottom";
|
2015-06-23 05:26:56 +00:00
|
|
|
|
2015-08-21 13:24:22 +00:00
|
|
|
if (screenGeometry(bottomPanel.screen).height > screenGeometry(bottomPanel.screen.width))
|
|
|
|
|
bottomPanel.height = 150;
|
|
|
|
|
else
|
|
|
|
|
bottomPanel.height = 60;
|
2015-06-23 05:26:56 +00:00
|
|
|
|